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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10d6c
call fcn.004b4520
cmp dword [0x4ca750], 4
mov eax, ecx
mov ecx, dword [0x4cbec8]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jl 0x453528
push 0x4b6ba9
push 0
push str.The_maximum_number_of_File_Dialogs_has_been_reached.
mov ecx, eax
call fcn.0043eaa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [esp + 0xd78], 0
test edx, edx
je 0x45364e
cmp byte [edx], 0
je 0x45364e
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453550
sub ecx, esi
lea eax, [esp + 0x70]
cmp ecx, 0x104
jb 0x453574
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x453588
push 0x103
push edx
push eax
call edi
add esp, 0xc
mov byte [esp + 0x173], 0
push 3
lea eax, [esp + 0x74]
push 0x4bf918
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
sete bl
test eax, eax
lea eax, [esp + 0x70]
jne 0x4535e2
push 0x7d
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
test eax, eax
je 0x453653
cmp byte [eax + 1], 0
je 0x453653
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4535d0
sub ecx, edx
cmp byte [esp + ecx + 0x6f], 0x5c
je 0x453653
jmp 0x4535f2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4535f2
test al, 0x10
jne 0x453653
lea eax, [esp + 0x70]
push 0x5c
push eax
mov eax, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x45362c
push 0xfffe
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0xd80]
push eax
call edi
mov byte [esp + 0x10d82], 0
add esp, 0xc
mov byte [esi], 0
jmp 0x453653
test bl, bl
jne 0x453653
push 0xfffe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xd80]
push eax
call edi
add esp, 0xc
mov byte [esp + 0x10d76], bl
mov byte [esp + 0x70], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45367c
cmp byte [eax], 0
je 0x45367c
push 0x3ff
push eax
lea eax, [esp + 0x580]
push eax
call edi
add esp, 0xc
mov byte [esp + 0x977], 0
jmp 0x45369c
push dword [0x4cce68]
lea eax, [esp + 0x57c]
push str.Select_File____s
push 0x400
push eax
call fcn.0049e760
add esp, 0x10
mov esi, dword [ebp + 0x14]
mov byte [esp + 0x978], 0
mov byte [esp + 0x178], 0
cmp byte [esi], 0
je 0x453775
push 0x28
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
push 0x3ff
test eax, eax
je 0x45370a
inc eax
push eax
lea eax, [esp + 0x180]
push eax
call edi
add esp, 0xc
mov byte [esp + 0x577], 0
lea eax, [esp + 0x178]
push 0x29
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x453700
mov byte [eax], 0
jmp 0x453720
mov byte [esp + 0x178], 0
jmp 0x453775
lea eax, [esp + 0x17c]
push esi
push eax
call edi
add esp, 0xc
mov byte [esp + 0x577], 0
cmp byte [esp + 0x178], 0
je 0x453775
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4b6ba9
mov edx, 0x4be53c
lea ecx, [esp + 0x190]
call fcn.0049ef20
push 0
push 0
push 0
lea eax, [esp + 0x19c]
push eax
push 0
push esi
push str._s_c_s_cAll_Files__.__c._c
lea eax, [esp + 0x9ac]
push 0x400
push eax
call fcn.0049e760
add esp, 0x3c
push 0x58
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [0x4c8024]
add esp, 0xc
mov dword [esp + 0x18], 0x58
lea ecx, [ecx + 0x4c]
call fcn.004766a0
test eax, eax
je 0x4537b1
mov eax, dword [0x4c8024]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x4537b9
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x978], 0
lea eax, [esp + 0x578]
mov esi, dword [ebp + 8]
mov ecx, str.All_Files__._
mov dword [esp + 0x48], eax
lea eax, [esp + 0x978]
cmove eax, ecx
mov dword [esp + 0x38], 0xfffe
mov dword [esp + 0x24], eax
xor ecx, ecx
cmp byte [esp + 0x70], cl
lea eax, [esp + 0xd78]
mov bl, byte [esi]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
cmove eax, ecx
mov byte [esp + 0xf], cl
mov dword [esp + 0x44], eax
xor bh, bh
movzx eax, bl
test eax, 0xffffff80
jne 0x45382b
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x45382b
and bl, 0xdf
mov al, bl
cmp al, 0x4d
je 0x45383c
cmp al, 0x53
jne 0x45383f
mov byte [esp + 0xf], 1
jmp 0x45383e
mov bh, 1
inc esi
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x20
je 0x45384b
cmp al, 9
jne 0x45384e
inc ecx
jmp 0x453841
test al, al
je 0x453892
cmp al, 0x2d
je 0x45385a
cmp al, 0x2b
jne 0x453861
lea eax, [ecx + 1]
mov ecx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x453892
mov al, byte [ecx + 1]
cmp al, 0x78
je 0x453870
cmp al, 0x58
jne 0x453892
movsx eax, byte [ecx + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isxdigit]
add esp, 4
test eax, eax
je 0x453892
push 0x10
push 0
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
jmp 0x45389c
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov ecx, eax
mov edx, 0x180004
test cl, 0x20
mov eax, 0x80004
cmovne eax, edx
mov dword [esp + 0x4c], eax
test cl, 0x10
je 0x4538be
or eax, 2
mov dword [esp + 0x4c], eax
test cl, 8
je 0x4538cc
or eax, 0x2000
mov dword [esp + 0x4c], eax
test bh, bh
jne 0x4538d5
test cl, 4
je 0x4538de
or eax, 0x200
mov dword [esp + 0x4c], eax
test cl, 2
je 0x4538ec
or eax, 0x800
mov dword [esp + 0x4c], eax
test cl, 1
je 0x4538fa
or eax, 0x1000
mov dword [esp + 0x4c], eax
call fcn.004a5b60
push 0
push 0x403
push 0x44
push dword [0x4ca754]
mov bl, al
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [0x4ca750]
cmp byte [esp + 0xf], 0
jne 0x45393f
mov eax, dword [esp + 0x4c]
test al, 2
je 0x453932
test eax, 0x2000
je 0x45393f
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
jmp 0x45394a
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
dec dword [0x4ca750]
mov esi, eax
mov ecx, dword [0x4c8024]
test bl, bl
sete al
mov byte [ecx + 0xce], bl
mov byte [ecx + 0xcc], al
mov eax, dword [0x4c9994]
test eax, eax
je 0x45398a
mov eax, dword [eax]
mov ecx, 0x4b6ba9
test eax, eax
cmovne ecx, eax
cmp byte [ecx], 0
je 0x45398a
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 1
push 0
push 0xffffffffffffffff
test esi, esi
jne 0x453a03
mov ecx, dword [esp + 0x1c]
push esi
call fcn.004a2db0
cmp eax, 1
je 0x4539ae
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
test eax, eax
je 0x4539e4
mov eax, dword [0x4c8024]
test byte [eax + 0xe0], 1
je 0x4539e4
mov ecx, dword [esp + 0x14]
push 0x4b6ba9
push 0
push 0x4bb578
call fcn.0043e6c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4ca738]
push 1
push 0
push 0xffffffffffffffff
push 0x4bb578
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4ca738]
push 0x4b6c08
call fcn.004a2db0
test dword [esp + 0x4c], 0x200
je 0x453ae6
test bh, bh
je 0x453ac3
lea ecx, [esp + 0xd78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453a33
sub ecx, edx
lea eax, [esp + 0xd78]
cmp byte [esp + ecx + 0xd79], 0
jne 0x453aa1
push 0x5c
push eax
mov eax, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x453ae6
mov ecx, esi
mov byte [esi], 0xa
lea eax, [esp + 0xd78]
sub ecx, eax
cmp ecx, 2
jne 0x453ae6
cmp byte [esi - 1], 0x3a
jne 0x453ae6
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453a82
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esi + 1]
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi], 0x5c
jmp 0x453ae6
mov cl, byte [esp + 0xd78]
test cl, cl
je 0x453ab6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x453ab0
cmp byte [eax + 1], 0
je 0x453ae6
mov byte [eax], 0xa
mov cl, 0xa
jmp 0x453aa8
mov cl, byte [esp + 0xd78]
lea eax, [esp + 0xd78]
test cl, cl
je 0x453adb
inc eax
cmp byte [eax], 0
jne 0x453ad5
mov byte [eax], 0xa
mov cl, 0xa
cmp byte [eax + 1], 0
jne 0x453ad1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xd78]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a2db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10