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

Disassembly:
mov eax, 0x10d68
call fcn.004918e0
cmp dword [0x4a9ebc], 4
mov eax, dword [0x4a9c68]
push ebx
push ebp
mov ebp, dword [esp + 0x10d7c]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x14], eax
jl 0x43ffc0
mov ecx, dword [esp + 0x10d7c]
push 0x498831
push 0
push 0x49dcd4
call fcn.0042e5b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d68
ret 0xc
xor ebx, ebx
push 0xfffe
lea ecx, [esp + 0xd7d]
push ebx
push ecx
mov byte [esp + 0xd84], bl
call fcn.0048e5e0
add esp, 0xc
cmp esi, ebx
je 0x4400d7
cmp byte [esi], bl
je 0x4400d7
push 0x103
lea edx, [esp + 0x74]
push esi
push edx
call fcn.00488060
add esp, 0xc
push 3
lea eax, [esp + 0x74]
push 0x49dd0c
push eax
mov byte [esp + 0x17f], bl
call fcn.004871f6
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x12], al
cmp al, bl
je 0x440063
lea ecx, [esp + 0x70]
push 0x7d
push ecx
call fcn.004860b1
add esp, 8
cmp eax, ebx
je 0x4400db
cmp byte [eax + 1], bl
je 0x4400db
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x440051
sub eax, edx
cmp byte [esp + eax + 0x6f], 0x5c
jne 0x440077
jmp 0x4400db
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x440077
test al, 0x10
jne 0x4400db
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.004872ba
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4400b0
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0xd80]
push edx
call fcn.00488060
mov byte [esp + 0x10d82], bl
add esp, 0xc
mov byte [esi], bl
jmp 0x4400db
cmp byte [esp + 0x12], bl
jne 0x4400db
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0xd80]
push ecx
call fcn.00488060
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], bl
cmp edi, ebx
je 0x440102
cmp byte [edi], bl
je 0x440102
push 0x3ff
lea edx, [esp + 0x97c]
push edi
push edx
call fcn.00488060
add esp, 0xc
mov byte [esp + 0xd77], bl
jmp 0x440121
mov eax, dword [0x4ac370]
push eax
push 0x49dd10
mov esi, 0x400
lea edi, [esp + 0x980]
call fcn.00472330
add esp, 8
push 0x3ff
lea ecx, [esp + 0x57d]
push ebx
push ecx
mov byte [esp + 0x584], bl
call fcn.0048e5e0
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x17d]
push ebx
push edx
mov byte [esp + 0x184], bl
call fcn.0048e5e0
add esp, 0xc
cmp byte [ebp], bl
je 0x4401b5
push 0x28
push ebp
call fcn.004860b1
add esp, 8
push 0x3ff
cmp eax, ebx
je 0x4401f0
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call fcn.00488060
add esp, 0xc
lea ecx, [esp + 0x178]
push 0x29
push ecx
mov byte [esp + 0x57f], bl
call fcn.004872ba
add esp, 8
cmp eax, ebx
je 0x4401a7
mov byte [eax], bl
jmp 0x440208
mov byte [esp + 0x178], bl
mov byte [esp + 0x578], bl
push 0x54
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.0048e5e0
mov ebx, dword [0x4a6440]
add esp, 0xc
add ebx, 0x4c
mov dword [esp + 0x18], 0x58
call fcn.0045ac90
test eax, eax
je 0x44025d
mov eax, dword [0x4a6440]
mov ecx, dword [eax + 0x4c]
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
jmp 0x440265
lea edx, [esp + 0x17c]
push ebp
push edx
call fcn.00488060
add esp, 0xc
mov byte [esp + 0x577], bl
cmp byte [esp + 0x178], bl
je 0x4401ae
push ebx
push 0xffffffffffffffff
push 1
push 0x498831
lea eax, [esp + 0x188]
push 0x49c638
push eax
xor eax, eax
or ecx, 0xffffffff
call fcn.00472af0
push ebx
push ebx
push ebx
lea ecx, [esp + 0x19c]
push ecx
push ebx
push ebp
push 0x49dd24
mov esi, 0x400
lea edi, [esp + 0x5ac]
call fcn.00472330
add esp, 0x34
jmp 0x4401b5
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x578], 0
lea eax, [esp + 0x978]
mov dword [esp + 0x48], eax
je 0x440287
lea ecx, [esp + 0x578]
mov dword [esp + 0x24], ecx
jmp 0x44028f
mov dword [esp + 0x24], 0x49dd44
movsx eax, byte [esp + 0x70]
mov esi, dword [esp + 0x10d80]
mov bl, byte [esi]
neg eax
sbb eax, eax
lea ecx, [esp + 0x70]
and eax, ecx
mov dword [esp + 0x44], eax
movzx eax, bl
lea edx, [esp + 0xd78]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0xfffe
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test eax, 0xffffff80
jne 0x4402e4
push 2
push eax
call fcn.004865fe
add esp, 8
test eax, eax
je 0x4402e4
and bl, 0xdf
cmp bl, 0x4d
je 0x4402f5
cmp bl, 0x53
jne 0x4402fb
mov byte [esp + 0x12], 1
jmp 0x4402fa
mov byte [esp + 0x13], 1
inc esi
mov eax, esi
call fcn.0040ceb0
test al, al
je 0x440315
push 0x10
push 0
push esi
call fcn.00486a44
add esp, 0xc
jmp 0x44031e
push esi
call fcn.00486646
add esp, 4
mov dword [esp + 0x4c], 0x80004
test al, 0x20
je 0x440332
mov dword [esp + 0x4c], 0x180004
test al, 0x10
je 0x44033b
or dword [esp + 0x4c], 2
test al, 8
je 0x440347
or dword [esp + 0x4c], 0x2000
cmp byte [esp + 0x13], 0
mov ebp, 0x200
jne 0x440357
test al, 4
je 0x44035b
or dword [esp + 0x4c], ebp
test al, 2
je 0x440367
or dword [esp + 0x4c], 0x800
test al, 1
je 0x440373
or dword [esp + 0x4c], 0x1000
call fcn.004777f0
mov edx, dword [0x4a9d20]
push 0
push 0x403
push 0x44
push edx
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, 1
add dword [0x4a9ebc], edi
cmp byte [esp + 0x12], 0
jne 0x4403be
mov eax, dword [esp + 0x4c]
test al, 2
je 0x4403b1
test eax, 0x2000
je 0x4403be
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x4403c9
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
sub dword [0x4a9ebc], edi
test bl, bl
mov esi, eax
mov eax, dword [0x4a6440]
sete dl
mov byte [eax + 0xca], bl
mov byte [eax + 0xc8], dl
cmp byte [0x4aa520], 0
je 0x4403fb
push 0x4aa520
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
jne 0x440462
mov ecx, dword [esp + 0x14]
call fcn.00412cc0
cmp eax, edi
je 0x44041b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d68
ret 0xc
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x44043f
mov eax, dword [esp + 0x10d7c]
push eax
call fcn.00430ae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d68
ret 0xc
mov ecx, dword [0x4aa51c]
push edi
push 0
push 0xffffffffffffffff
push 0x499ee0
push ecx
call fcn.00474fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d68
ret 0xc
mov edx, dword [0x4aa51c]
push edi
push 0
push 0xffffffffffffffff
push 0x49887c
push edx
call fcn.00474fa0
test dword [esp + 0x4c], ebp
je 0x440530
cmp byte [esp + 0x13], 0
lea eax, [esp + 0xd78]
je 0x440517
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440497
sub eax, edx
cmp byte [esp + eax + 0xd79], cl
lea eax, [esp + 0xd78]
jne 0x440500
push 0x5c
push eax
call fcn.004872ba
mov esi, eax
add esp, 8
test esi, esi
je 0x440530
mov ecx, esi
lea edx, [esp + 0xd78]
sub ecx, edx
mov byte [esi], 0xa
cmp ecx, 2
jne 0x440530
cmp byte [esi - 1], 0x3a
jne 0x440530
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4404e0
sub eax, edx
inc eax
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.00485ca0
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x440530
cmp byte [eax], 0
je 0x44050c
add eax, edi
cmp byte [eax], 0
jne 0x440505
cmp byte [eax + 1], 0
je 0x440530
mov byte [eax], 0xa
jmp 0x440500
cmp byte [eax], 0
je 0x440527
lea esp, [esp]
add eax, edi
cmp byte [eax], 0
jne 0x440520
cmp byte [eax + 1], 0
mov byte [eax], 0xa
jne 0x440517
mov edx, dword [esp + 0x14]
push edi
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0xd84]
push ecx
push edx
call fcn.00474fa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d68
ret 0xc