Function at 0x405d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x424024]
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [0x423fc8]
and eax, 0x20
push edi
mov dword [0x424040], eax
call fcn.004044b5
mov ebp, 0x42a400
push ebp
call fcn.00406437
xor ebx, ebx
test eax, eax
jne 0x405e24
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
je 0x405e24
mov eax, dword [0x423ff8]
mov edx, dword [esi + 0x4c]
mov edi, 0x422f60
push edi
add edx, eax
push edx
add ecx, eax
push ecx
push dword [esi + 0x44]
call fcn.004061ea
mov al, byte [0x422f60]
cmp al, bl
je 0x405e24
cmp al, 0x22
jne 0x405de3
push 0x22
mov edi, 0x422f61
push edi
call fcn.004060c3
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405e17
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405e17
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e11
test al, 0x10
jne 0x405e17
push edi
call fcn.00406411
push edi
call fcn.004063e4
push eax
push ebp
call sub.KERNEL32.dll_lstrcpyA
push ebp
call fcn.00406437
test eax, eax
jne 0x405e3a
push dword [esi + 0x118]
push ebp
call fcn.004066c3
push LoadCursorA
push ebx
push ebx
push 1
push 0x67
push dword [0x423fc4]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x423790], eax
cmp dword [esi + 0x50], 0xffffffff
mov edi, 0x423760
je 0x405eee
mov ecx, dword [0x423fc4]
mov dword [0x423774], eax
lea eax, [esp + 0x10]
push edi
mov dword [esp + 0x14], 0x624e5f
mov dword [0x423764], 0x401a9b
mov dword [0x423770], ecx
mov dword [0x423784], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x405fc5
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push ebx
push dword [0x423fc4]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x2c]
push dword [esp + 0x30]
push 0x80000000
push ebx
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x41fdb4], eax
push ebx
call fcn.00401fcf
test eax, eax
je 0x405f00
push 2
pop eax
jmp 0x405fc7
call fcn.004044b5
cmp dword [0x424060], ebx
jne 0x405f9c
push 5
push dword [0x41fdb4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, str.RichEd20.dll
push ebp
call esi
test eax, eax
jne 0x405f3d
push ebp
mov word [0x409056], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
push edi
mov esi, 0x409044
push esi
push ebx
call ebp
test eax, eax
jne 0x405f70
push edi
push esi
push ebx
mov byte [0x40904c], bl
call ebp
push edi
mov dword [0x423784], esi
mov byte [0x40904c], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x42379c]
push ebx
push 0x4058ad
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x423fc4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.00401fcf
mov eax, esi
jmp 0x405fc7
push ebx
call fcn.004054ce
test eax, eax
je 0x405fbe
cmp dword [0x423794], ebx
jne 0x405ef8
push 2
call fcn.00401fcf
jmp 0x405ef8
push 1
call fcn.00401fcf
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret