Function at 0x43d3d0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x21a74
call fcn.00493680
mov eax, dword [0x4c0e18]
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov edi, ecx
mov ecx, dword [0x4c17f0]
push 0x49e30c
mov esi, edx
mov dword [esp + 0x2c], eax
call fcn.0046dd60
cmp dword [0x4c1008], 4
jl 0x43d438
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.The_maximum_number_of_File_Dialogs_has_been_reached.__The_current_thread_will_exit.
call fcn.0046f820
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
push 0x1fffc
push ecx
lea edx, [esp + 0x1a8a]
push edx
mov word [esp + 0x1a8c], cx
call fcn.00490160
add esp, 0xc
test esi, esi
je 0x43d570
cmp word [esi], 0
je 0x43d570
push 0x103
lea eax, [esp + 0x7c]
push esi
push eax
call fcn.00488d24
add esp, 0xc
push 3
lea edx, [esp + 0x7c]
xor ecx, ecx
push 0x4a5308
push edx
mov word [esp + 0x28a], cx
call fcn.00487e1e
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x43d4ec
lea eax, [esp + 0x78]
push 0x7d
push eax
call fcn.00487101
add esp, 8
test eax, eax
je 0x43d577
cmp word [eax + 2], 0
je 0x43d577
lea eax, [esp + 0x78]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d4d0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x76], 0x5c
jne 0x43d500
jmp 0x43d577
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43d500
test al, 0x10
jne 0x43d577
lea edx, [esp + 0x78]
push 0x5c
push edx
call fcn.00487df0
mov esi, eax
add esp, 8
test esi, esi
je 0x43d53f
push 0xfffe
lea eax, [esi + 2]
push eax
lea ecx, [esp + 0x1a88]
push ecx
call fcn.00488d24
xor edx, edx
add esp, 0xc
xor eax, eax
mov word [esp + 0x21a7c], dx
mov word [esi], ax
jmp 0x43d577
test bl, bl
jne 0x43d577
push 0xfffe
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x1a88]
push edx
call fcn.00488d24
xor eax, eax
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x21a7c], ax
mov word [esp + 0x78], cx
jmp 0x43d577
xor edx, edx
mov word [esp + 0x78], dx
test edi, edi
je 0x43d5a3
cmp word [edi], 0
je 0x43d5a3
push 0x3ff
lea eax, [esp + 0x1284]
push edi
push eax
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
mov word [esp + 0x1a7e], cx
jmp 0x43d5c3
mov edx, dword [0x4c3bfc]
push edx
push str.Select_File____s
mov esi, 0x400
lea edi, [esp + 0x1288]
call fcn.0046b300
add esp, 8
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa8a]
push ecx
mov word [esp + 0xa8c], ax
call fcn.00490160
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x28a]
push eax
mov word [esp + 0x28c], dx
call fcn.00490160
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp word [esi], 0
je 0x43d673
push 0x28
push esi
call fcn.00487101
add esp, 8
push 0x3ff
test eax, eax
je 0x43d6b8
add eax, 2
push eax
lea ecx, [esp + 0x288]
push ecx
call fcn.00488d24
add esp, 0xc
lea eax, [esp + 0x280]
xor edx, edx
push 0x29
push eax
mov word [esp + 0xa86], dx
call fcn.00487df0
add esp, 8
test eax, eax
je 0x43d65f
xor ecx, ecx
mov word [eax], cx
jmp 0x43d6d3
xor edx, edx
mov word [esp + 0x280], dx
xor edx, edx
mov word [esp + 0xa80], dx
push 0x54
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00490160
mov ecx, dword [0x4bd41c]
mov dword [esp + 0x2c], 0x58
mov eax, dword [ecx + 0x50]
add esp, 0xc
cmp eax, 0x63
jae 0x43d733
mov eax, dword [eax*4 + 0x4c1600]
test eax, eax
je 0x43d733
mov edx, dword [eax]
mov dword [esp + 0x24], edx
jmp 0x43d73b
lea eax, [esp + 0x284]
push esi
push eax
call fcn.00488d24
add esp, 0xc
xor ecx, ecx
mov word [esp + 0xa7e], cx
cmp word [esp + 0x280], 0
je 0x43d669
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4a596c
lea edx, [esp + 0x294]
push 0x4a2c74
push edx
xor eax, eax
call fcn.0046baa0
add esp, 0x1c
push 0
push 0
push 0
lea eax, [esp + 0x28c]
push eax
mov ecx, esi
push 0
push ecx
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [esp + 0xa9c]
call fcn.0046b300
add esp, 0x1c
jmp 0x43d673
mov dword [esp + 0x24], 0
cmp word [esp + 0xa80], 0
lea eax, [esp + 0x1280]
mov dword [esp + 0x50], eax
je 0x43d75e
lea ecx, [esp + 0xa80]
mov dword [esp + 0x2c], ecx
jmp 0x43d766
mov dword [esp + 0x2c], str.All_Files__._
movzx eax, word [esp + 0x78]
mov edi, dword [ebp + 8]
movzx esi, word [edi]
neg eax
sbb eax, eax
lea ecx, [esp + 0x78]
and eax, ecx
lea edx, [esp + 0x1a80]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0xfffe
mov dword [esp + 0x4c], eax
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
test esi, 0xffffff80
jne 0x43d7b6
push 2
push esi
call fcn.0048757e
add esp, 8
test eax, eax
je 0x43d7b6
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x4d
je 0x43d7ca
cmp eax, 0x53
jne 0x43d7d2
mov byte [esp + 0x1b], 1
jmp 0x43d7cf
mov byte [esp + 0x1a], 1
add edi, 2
mov eax, edi
call fcn.0040c9b0
test al, al
je 0x43d7ec
push 0x10
push 0
push edi
call fcn.0048795b
add esp, 0xc
jmp 0x43d7f5
push edi
call fcn.004875c6
add esp, 4
mov dword [esp + 0x54], 0x80004
test al, 0x20
je 0x43d809
mov dword [esp + 0x54], 0x180004
test al, 0x10
je 0x43d812
or dword [esp + 0x54], 2
test al, 8
je 0x43d81e
or dword [esp + 0x54], 0x2000
cmp byte [esp + 0x1a], 0
jne 0x43d829
test al, 4
je 0x43d831
or dword [esp + 0x54], 0x200
test al, 2
je 0x43d83d
or dword [esp + 0x54], 0x800
test al, 1
je 0x43d849
or dword [esp + 0x54], 0x1000
mov eax, dword [0x4bd41c]
mov bl, byte [eax + 0xe6]
push 0x4bf
mov byte [eax + 0xe6], 0
mov byte [eax + 0xe4], 1
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x43d880
push 1
push 0xffffffffffffffff
call fcn.00401360
add esp, 8
mov edx, dword [0x4c0e74]
push 0
push 0x403
push 0x44
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 1
add dword [0x4c1008], edi
cmp byte [esp + 0x1b], 0
jne 0x43d8c4
mov eax, dword [esp + 0x54]
test al, 2
je 0x43d8b7
test eax, 0x2000
je 0x43d8c4
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
jmp 0x43d8cf
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
sub dword [0x4c1008], edi
test bl, bl
mov esi, eax
mov eax, dword [0x4bd41c]
sete dl
mov byte [eax + 0xe6], bl
mov byte [eax + 0xe4], dl
cmp word [0x4c17f8], 0
je 0x43d902
push 0x4c17f8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x43d91e
mov ecx, dword [esp + 0x28]
push esi
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c17f0]
push 0x49b8d0
call fcn.0046dd60
test dword [esp + 0x54], 0x200
je 0x43da1e
cmp byte [esp + 0x1a], 0
lea eax, [esp + 0x1a80]
je 0x43da00
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d951
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x1a82], cx
lea eax, [esp + 0x1a80]
jne 0x43d9e0
push 0x5c
push eax
call fcn.00487df0
mov esi, eax
add esp, 8
test esi, esi
je 0x43da1e
mov edx, esi
lea eax, [esp + 0x1a80]
sub edx, eax
and edx, 0xfffffffe
mov ecx, 0xa
mov word [esi], cx
cmp edx, 4
jne 0x43da1e
cmp word [esi - 2], 0x3a
jne 0x43da1e
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d9b0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 2]
push esi
push edx
call fcn.00486da0
mov eax, 0x5c
add esp, 0xc
mov word [esi], ax
jmp 0x43da1e
cmp word [eax], 0
je 0x43d9ef
add eax, 2
cmp word [eax], 0
jne 0x43d9e6
cmp word [eax + 2], 0
je 0x43da1e
mov ecx, 0xa
mov word [eax], cx
jmp 0x43d9e0
cmp word [eax], 0
je 0x43da0f
add eax, 2
cmp word [eax], 0
jne 0x43da06
cmp word [eax + 2], 0
mov edx, 0xa
mov word [eax], dx
jne 0x43da00
mov ecx, dword [esp + 0x1c]
push edi
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x1a8c]
push eax
call fcn.0046dd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8