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

Disassembly:
mov eax, 0x10d6c
call fcn.004c6f60
cmp dword [0x4f0d74], 4
mov eax, dword [esp + 0x10d78]
push ebx
push ebp
mov ebp, dword [esp + 0x10d84]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4f0b10]
mov dword [esp + 0x14], ecx
jl 0x43e9ff
push 0x4d6959
push 0
push 0x4ddfdc
call fcn.0049be50
mov ecx, dword [esp + 0x10d8c]
add esp, 4
push eax
call fcn.0042d2f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
xor ebx, ebx
mov byte [esp + 0xd78], bl
cmp eax, ebx
je 0x43eb06
cmp byte [eax], bl
je 0x43eb06
push 0x103
push eax
lea edx, [esp + 0x78]
push edx
call fcn.004bd1c0
add esp, 0xc
push 3
lea eax, [esp + 0x74]
push 0x4de01c
push eax
mov byte [esp + 0x17f], bl
call fcn.004bc8b3
add esp, 0xc
test eax, eax
sete al
mov byte [esp + 0x12], al
cmp al, bl
je 0x43ea92
lea ecx, [esp + 0x70]
push 0x7d
push ecx
call fcn.004bb121
add esp, 8
cmp eax, ebx
je 0x43eb0a
cmp byte [eax + 1], bl
je 0x43eb0a
lea eax, [esp + 0x70]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43ea80
sub eax, edx
cmp byte [esp + eax + 0x6f], 0x5c
jne 0x43eaa6
jmp 0x43eb0a
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43eaa6
test al, 0x10
jne 0x43eb0a
lea eax, [esp + 0x70]
push 0x5c
push eax
call fcn.004bc514
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x43eadf
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0xd80]
push edx
call fcn.004bd1c0
mov byte [esp + 0x10d82], bl
add esp, 0xc
mov byte [esi], bl
jmp 0x43eb0a
cmp byte [esp + 0x12], bl
jne 0x43eb0a
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0xd80]
push ecx
call fcn.004bd1c0
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], bl
cmp edi, ebx
je 0x43eb31
cmp byte [edi], bl
je 0x43eb31
push 0x3ff
lea edx, [esp + 0x97c]
push edi
push edx
call fcn.004bd1c0
add esp, 0xc
mov byte [esp + 0xd77], bl
jmp 0x43eb59
mov eax, dword [0x4f22dc]
push eax
push 0x4de020
call fcn.0049be50
add esp, 4
push eax
mov esi, 0x400
lea edi, [esp + 0x980]
call fcn.004a2f10
add esp, 8
mov byte [esp + 0x578], bl
mov byte [esp + 0x178], bl
cmp byte [ebp], bl
je 0x43ebc5
push 0x28
push ebp
call fcn.004bb121
add esp, 8
push 0x3ff
cmp eax, ebx
je 0x43ec08
inc eax
push eax
lea ecx, [esp + 0x180]
push ecx
call fcn.004bd1c0
add esp, 0xc
lea edx, [esp + 0x178]
push 0x29
push edx
mov byte [esp + 0x57f], bl
call fcn.004bc514
add esp, 8
cmp eax, ebx
je 0x43ebb7
mov byte [eax], bl
jmp 0x43ec20
mov byte [esp + 0x178], bl
mov byte [esp + 0x578], bl
push 0x54
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.004c16a0
mov ebx, dword [0x4ec48c]
add esp, 0xc
add ebx, 0x4c
mov dword [esp + 0x18], 0x58
call fcn.00459850
test eax, eax
je 0x43ec81
mov ecx, dword [0x4ec48c]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
jmp 0x43ec89
lea eax, [esp + 0x17c]
push ebp
push eax
call fcn.004bd1c0
add esp, 0xc
mov byte [esp + 0x577], bl
cmp byte [esp + 0x178], bl
je 0x43ebbe
push ebx
push 0xffffffffffffffff
push 1
push 0x4d6959
lea ecx, [esp + 0x188]
push 0x4d9a0c
push ecx
xor eax, eax
or ecx, 0xffffffff
call fcn.004a36d0
add esp, 0x18
push ebx
push ebx
push ebx
lea edx, [esp + 0x184]
push edx
push ebx
push ebp
push str.u_t_mhA5_n_n__5izixyjuibp.
call fcn.0049be50
add esp, 4
push eax
mov esi, 0x400
lea edi, [esp + 0x594]
call fcn.004a2f10
add esp, 0x1c
jmp 0x43ebc5
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x578], 0
lea ecx, [esp + 0x978]
mov dword [esp + 0x48], ecx
je 0x43ecab
lea edx, [esp + 0x578]
mov dword [esp + 0x24], edx
jmp 0x43ecbc
push 0x4de064
call fcn.0049be50
add esp, 4
mov dword [esp + 0x24], eax
movsx ecx, byte [esp + 0x70]
mov esi, dword [esp + 0x10d84]
mov bl, byte [esi]
lea eax, [esp + 0xd78]
neg ecx
mov dword [esp + 0x34], eax
sbb ecx, ecx
movzx eax, bl
lea edx, [esp + 0x70]
and ecx, edx
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x44], ecx
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test eax, 0xffffff80
jne 0x43ed11
push 2
push eax
call fcn.004bb66e
add esp, 8
test eax, eax
je 0x43ed11
and bl, 0xdf
cmp bl, 0x4d
je 0x43ed22
cmp bl, 0x53
jne 0x43ed28
mov byte [esp + 0x12], 1
jmp 0x43ed27
mov byte [esp + 0x13], 1
inc esi
mov eax, esi
call fcn.0040dd50
test al, al
je 0x43ed42
push 0x10
push 0
push esi
call fcn.004bbb06
add esp, 0xc
jmp 0x43ed4b
push esi
call fcn.004bb6b6
add esp, 4
mov dword [esp + 0x4c], 0x80004
test al, 0x20
je 0x43ed5f
mov dword [esp + 0x4c], 0x180004
test al, 0x10
je 0x43ed68
or dword [esp + 0x4c], 2
test al, 8
je 0x43ed74
or dword [esp + 0x4c], 0x2000
cmp byte [esp + 0x13], 0
mov ebp, 0x200
jne 0x43ed84
test al, 4
je 0x43ed88
or dword [esp + 0x4c], ebp
test al, 2
je 0x43ed94
or dword [esp + 0x4c], 0x800
test al, 1
je 0x43eda0
or dword [esp + 0x4c], 0x1000
call fcn.004a8510
push 0
push 0x403
mov bl, al
mov eax, dword [0x4f0bd8]
push 0x44
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, 1
add dword [0x4f0d74], edi
cmp byte [esp + 0x12], 0
jne 0x43edea
mov eax, dword [esp + 0x4c]
test al, 2
je 0x43eddd
test eax, 0x2000
je 0x43edea
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x43edf5
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
sub dword [0x4f0d74], edi
test bl, bl
mov esi, eax
mov eax, dword [0x4ec48c]
sete cl
mov byte [eax + 0xce], bl
mov byte [eax + 0xcc], cl
cmp byte [0x4f13e0], 0
je 0x43ee27
push 0x4f13e0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
jne 0x43ee8d
mov ecx, dword [esp + 0x14]
call fcn.0041a480
cmp eax, edi
je 0x43ee47
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x43ee6b
mov edx, dword [esp + 0x10d80]
push edx
call fcn.0042fa00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov eax, dword [0x4f13d8]
push edi
push 0
push 0xffffffffffffffff
push 0x4d9220
push eax
call fcn.004a5c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10
mov ecx, dword [0x4f13d8]
push edi
push 0
push 0xffffffffffffffff
push 0x4d69c8
push ecx
call fcn.004a5c20
test dword [esp + 0x4c], ebp
je 0x43ef60
cmp byte [esp + 0x13], 0
lea eax, [esp + 0xd78]
je 0x43ef47
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43eec2
sub eax, edx
cmp byte [esp + eax + 0xd79], cl
jne 0x43ef25
lea edx, [esp + 0xd78]
push 0x5c
push edx
call fcn.004bc514
mov esi, eax
add esp, 8
test esi, esi
je 0x43ef60
lea ecx, [esp + 0xd78]
sub eax, ecx
mov byte [esi], 0xa
cmp eax, 2
jne 0x43ef60
cmp byte [esi - 1], 0x3a
jne 0x43ef60
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ef08
sub eax, edx
inc eax
push eax
lea edx, [esi + 1]
push esi
push edx
call fcn.004bad10
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x43ef60
lea eax, [esp + 0xd78]
lea esp, [esp]
cmp byte [eax], 0
je 0x43ef3c
add eax, edi
cmp byte [eax], 0
jne 0x43ef35
cmp byte [eax + 1], 0
je 0x43ef60
mov byte [eax], 0xa
jmp 0x43ef30
cmp byte [eax], 0
je 0x43ef57
lea esp, [esp]
add eax, edi
cmp byte [eax], 0
jne 0x43ef50
cmp byte [eax + 1], 0
mov byte [eax], 0xa
jne 0x43ef47
mov ecx, dword [esp + 0x14]
push edi
push 0
push 0xffffffffffffffff
lea eax, [esp + 0xd84]
push eax
push ecx
call fcn.004a5c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10d6c
ret 0x10