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

Disassembly:
mov eax, dword [0x424050]
sub esp, 0x10
and eax, 0x20
push ebx
push ebp
push esi
mov esi, dword [0x424048]
push edi
mov dword [0x4240a0], eax
call fcn.0040463e
mov ebp, 0x42a400
push ebp
call fcn.00406642
xor ebx, ebx
test eax, eax
jne 0x404483
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x404483
mov edx, dword [esi + 0x44]
mov eax, dword [0x424078]
mov edi, 0x422fe0
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.00406954
mov al, byte [0x422fe0]
cmp al, bl
je 0x404483
cmp al, 0x22
jne 0x404448
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
push 0x22
push edi
call fcn.00406583
mov byte [eax], bl
push edi
call fcn.00406a72
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x40447c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40447c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404476
test al, 0x10
jne 0x40447c
push edi
call fcn.0040659f
push edi
push ebp
call fcn.00406a61
push ebp
call fcn.00406642
test eax, eax
jne 0x404499
push dword [esi + 0x10c]
push ebp
call fcn.00406a7f
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x424040]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x423828], eax
cmp dword [esi + 0x48], 0xffffffff
mov edi, 0x4237e0
je 0x40453f
mov ecx, dword [0x424040]
mov ebp, 0x409410
push edi
mov dword [0x4237e4], 0x401d6a
mov dword [0x4237f0], ecx
mov dword [0x4237f4], eax
mov dword [0x423804], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x404634
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x424040]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x80000000
push ebx
push ebp
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x420a20], eax
mov eax, dword [0x420a20]
push ebx
mov dword [0x424044], eax
push dword [esi + 0x64]
call fcn.00401f87
test eax, eax
je 0x40455e
push 1
pop eax
jmp 0x404636
call fcn.0040463e
cmp dword [0x4240bc], ebx
mov dword [0x424044], ebx
jne 0x404607
push 5
push dword [0x420a20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20.dll
call ebp
test eax, eax
jne 0x4045a4
push str.RichEd20.dll
mov word [0x409406], 0x3233
call ebp
mov ebp, 0x4093f4
push edi
push ebp
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x4045d9
push edi
push ebp
push ebx
mov byte [0x4093fc], bl
call dword [sym.imp.USER32.dll_GetClassInfoA]
push edi
mov dword [0x423804], ebp
mov byte [0x4093fc], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x423820]
push ebx
add eax, 0x69
push 0x404704
movzx eax, ax
push ebx
push eax
push dword [0x424040]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push ebx
mov edi, eax
push dword [esi + 0x78]
call fcn.00401f87
mov eax, edi
jmp 0x404636
push ebx
call fcn.00406004
test eax, eax
je 0x40462b
cmp dword [0x42380c], ebx
jne 0x404556
push ebx
push dword [esi + 0x6c]
call fcn.00401f87
jmp 0x404556
push ebx
push dword [esi + 0x68]
call fcn.00401f87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret