Function at 0x438bd0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x10d74
call fcn.00488480
mov eax, dword [0x4a09d8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4a13a4]
push 0x4916f4
mov dword [esp + 0x2c], eax
call fcn.004668b0
cmp dword [0x4a0bbc], 4
jl 0x438c39
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.00468330
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xfffe
lea ecx, [esp + 0xd85]
push 0
push ecx
mov byte [esp + 0xd8c], 0
call fcn.004812e0
add esp, 0xc
test esi, esi
je 0x438d56
cmp byte [esi], 0
je 0x438d56
push 0x103
lea edx, [esp + 0x7c]
push esi
push edx
call fcn.0047a8e0
add esp, 0xc
push 3
lea eax, [esp + 0x7c]
push 0x4950a4
push eax
mov byte [esp + 0x187], 0
call fcn.00478e34
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x438ce2
lea ecx, [esp + 0x78]
push 0x7d
push ecx
call fcn.00477c01
add esp, 8
test eax, eax
je 0x438d5b
cmp byte [eax + 1], 0
je 0x438d5b
lea eax, [esp + 0x78]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438cd0
sub eax, edx
cmp byte [esp + eax + 0x77], 0x5c
jne 0x438cf6
jmp 0x438d5b
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x438cf6
test al, 0x10
jne 0x438d5b
lea eax, [esp + 0x78]
push 0x5c
push eax
call fcn.00478bf7
mov esi, eax
add esp, 8
test esi, esi
je 0x438d31
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0xd88]
push edx
call fcn.0047a8e0
mov byte [esp + 0x10d8a], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x438d5b
test bl, bl
jne 0x438d5b
push 0xfffe
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xd88]
push ecx
call fcn.0047a8e0
add esp, 0xc
mov byte [esp + 0x10d7e], bl
mov byte [esp + 0x78], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x438d87
cmp byte [eax], 0
je 0x438d87
push 0x3ff
push eax
lea edx, [esp + 0x988]
push edx
call fcn.0047a8e0
add esp, 0xc
mov byte [esp + 0xd7f], 0
jmp 0x438da9
mov eax, dword [0x4a30d4]
push eax
push str.Select_File____s
mov esi, 0x400
lea edi, [esp + 0x988]
call fcn.00463ff0
mov edi, dword [ebp + 0x10]
add esp, 8
push 0x3ff
lea ecx, [esp + 0x585]
push 0
push ecx
mov byte [esp + 0x58c], 0
call fcn.004812e0
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x185]
push 0
push edx
mov byte [esp + 0x18c], 0
call fcn.004812e0
add esp, 0xc
cmp byte [edi], 0
je 0x438e49
push 0x28
push edi
call fcn.00477c01
add esp, 8
push 0x3ff
test eax, eax
je 0x438e87
inc eax
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0047a8e0
add esp, 0xc
lea ecx, [esp + 0x180]
push 0x29
push ecx
mov byte [esp + 0x587], 0
call fcn.00478bf7
add esp, 8
test eax, eax
je 0x438e39
mov byte [eax], 0
jmp 0x438ea0
mov byte [esp + 0x180], 0
mov byte [esp + 0x580], 0
push 0x54
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004812e0
mov ecx, dword [0x49d3c8]
mov dword [esp + 0x2c], 0x58
mov eax, dword [ecx + 0x50]
add esp, 0xc
cmp eax, 0x63
jae 0x438efe
mov eax, dword [eax*4 + 0x4a11b8]
test eax, eax
je 0x438efe
mov edx, dword [eax]
mov dword [esp + 0x24], edx
jmp 0x438f06
lea edx, [esp + 0x184]
push edi
push edx
call fcn.0047a8e0
add esp, 0xc
mov byte [esp + 0x57f], 0
cmp byte [esp + 0x180], 0
je 0x438e41
push 0
push 0xffffffffffffffff
push 1
push 0x49588a
lea eax, [esp + 0x190]
push 0x493b2c
push eax
xor eax, eax
or ecx, 0xffffffff
call fcn.00464760
mov edx, dword [ebp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x1a4]
push ecx
push 0
push edx
push str._s_c_s_cAll_Files__.__c._c
mov esi, 0x400
lea edi, [esp + 0x5b4]
call fcn.00463ff0
add esp, 0x34
jmp 0x438e49
mov dword [esp + 0x24], 0
cmp byte [esp + 0x580], 0
lea eax, [esp + 0x980]
mov dword [esp + 0x50], eax
je 0x438f28
lea ecx, [esp + 0x580]
mov dword [esp + 0x2c], ecx
jmp 0x438f30
mov dword [esp + 0x2c], str.All_Files__._
movsx eax, byte [esp + 0x78]
mov esi, dword [ebp + 8]
mov bl, byte [esi]
neg eax
sbb eax, eax
lea ecx, [esp + 0x78]
and eax, ecx
mov dword [esp + 0x4c], eax
movzx eax, bl
lea edx, [esp + 0xd80]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0xfffe
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
test eax, 0xffffff80
jne 0x438f81
push 2
push eax
call fcn.0047814e
add esp, 8
test eax, eax
je 0x438f81
and bl, 0xdf
cmp bl, 0x4d
je 0x438f92
cmp bl, 0x53
jne 0x438f98
mov byte [esp + 0x1b], 1
jmp 0x438f97
mov byte [esp + 0x1a], 1
inc esi
mov eax, esi
call fcn.0040c270
test al, al
je 0x438fb2
push 0x10
push 0
push esi
call fcn.00478594
add esp, 0xc
jmp 0x438fbb
push esi
call fcn.00478196
add esp, 4
mov dword [esp + 0x54], 0x80004
test al, 0x20
je 0x438fcf
mov dword [esp + 0x54], 0x180004
test al, 0x10
je 0x438fd8
or dword [esp + 0x54], 2
test al, 8
je 0x438fe4
or dword [esp + 0x54], 0x2000
cmp byte [esp + 0x1a], 0
mov edi, 0x200
jne 0x438ff4
test al, 4
je 0x438ff8
or dword [esp + 0x54], edi
test al, 2
je 0x439004
or dword [esp + 0x54], 0x800
test al, 1
je 0x439010
or dword [esp + 0x54], 0x1000
mov eax, dword [0x49d3c8]
mov bl, byte [eax + 0xc6]
push 0x4bf
mov byte [eax + 0xc6], 0
mov byte [eax + 0xc4], 1
call dword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test eax, eax
je 0x439047
push 1
push 0xffffffffffffffff
call fcn.00401340
add esp, 8
mov edx, dword [0x4a0a38]
push 0
push 0x403
push 0x44
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4a0bbc]
cmp byte [esp + 0x1b], 0
jne 0x439086
mov eax, dword [esp + 0x54]
test al, 2
je 0x439079
test eax, 0x2000
je 0x439086
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x439091
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4a0bbc]
test bl, bl
mov esi, eax
mov eax, dword [0x49d3c8]
sete dl
mov byte [eax + 0xc6], bl
mov byte [eax + 0xc4], dl
cmp byte [0x4a13a8], 0
je 0x4390c3
push 0x4a13a8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x4390e0
mov ecx, dword [esp + 0x28]
push esi
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4a13a4]
push 0x4900b0
call fcn.004668b0
test dword [esp + 0x54], edi
je 0x4391a4
cmp byte [esp + 0x1a], 0
lea eax, [esp + 0xd80]
je 0x439190
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439110
sub eax, edx
cmp byte [esp + eax + 0xd81], cl
lea eax, [esp + 0xd80]
jne 0x439173
push 0x5c
push eax
call fcn.00478bf7
mov esi, eax
add esp, 8
test esi, esi
je 0x4391a4
mov ecx, esi
lea edx, [esp + 0xd80]
sub ecx, edx
mov byte [esi], 0xa
cmp ecx, 2
jne 0x4391a4
cmp byte [esi - 1], 0x3a
jne 0x4391a4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439156
sub eax, edx
inc eax
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.004777f0
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x4391a4
cmp byte [eax], 0
je 0x43917e
inc eax
cmp byte [eax], 0
jne 0x439178
cmp byte [eax + 1], 0
je 0x4391a4
mov byte [eax], 0xa
jmp 0x439173
cmp byte [eax], 0
je 0x43919b
inc eax
cmp byte [eax], 0
jne 0x439195
cmp byte [eax + 1], 0
mov byte [eax], 0xa
jne 0x439190
push 1
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0xd8c]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc