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

Disassembly:
mov eax, dword [0x424f50]
sub esp, 0x10
and eax, 0x20
push ebx
push ebp
push esi
mov esi, dword [0x424f48]
push edi
mov dword [0x424fa0], eax
call fcn.00404666
mov ebp, 0x42a400
push ebp
call fcn.0040681f
xor ebx, ebx
test eax, eax
jne 0x4044ab
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x4044ab
mov edx, dword [esi + 0x44]
mov eax, dword [0x424f78]
mov edi, 0x423ee0
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.00406b30
mov al, byte [0x423ee0]
cmp al, bl
je 0x4044ab
cmp al, 0x22
mov ebp, edi
jne 0x404468
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
call edi
mov ebp, eax
mov cl, byte [eax]
cmp cl, bl
je 0x404466
cmp cl, 0x22
je 0x404466
push eax
call edi
jmp 0x404456
mov byte [eax], bl
push ebp
call fcn.00406c4e
lea eax, [eax + ebp - 4]
cmp eax, ebp
jbe 0x40449b
push str..exe
push eax
call fcn.00407148
test eax, eax
jne 0x40449b
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404495
test al, 0x10
jne 0x40449b
push ebp
call fcn.004065d0
push ebp
push 0x42a400
call fcn.00406c3d
mov ebp, 0x42a400
push ebp
call fcn.0040681f
test eax, eax
jne 0x4044c1
push dword [esi + 0x10c]
push ebp
call fcn.00406c5b
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x424f40]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x424728], eax
cmp dword [esi + 0x48], 0xffffffff
mov edi, 0x4246e0
je 0x404567
mov ecx, dword [0x424f40]
mov ebp, 0x40a2e4
push edi
mov dword [0x4246e4], 0x401d6a
mov dword [0x4246f0], ecx
mov dword [0x4246f4], eax
mov dword [0x424704], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40465c
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x424f40]
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 [0x42190c], eax
mov eax, dword [0x42190c]
push ebx
mov dword [0x424f44], eax
push dword [esi + 0x64]
call fcn.00401f87
test eax, eax
je 0x404586
push 1
pop eax
jmp 0x40465e
call fcn.00404666
cmp dword [0x424fbc], ebx
mov dword [0x424f44], ebx
jne 0x40462f
push 5
push dword [0x42190c]
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 0x4045cc
push str.RichEd20.dll
mov word [0x40a2da], 0x3233
call ebp
mov ebp, 0x40a2c8
push edi
push ebp
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x404601
push edi
push ebp
push ebx
mov byte [0x40a2d0], bl
call dword [sym.imp.USER32.dll_GetClassInfoA]
push edi
mov dword [0x424704], ebp
mov byte [0x40a2d0], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x424720]
push ebx
add eax, 0x69
push 0x40472c
movzx eax, ax
push ebx
push eax
push dword [0x424f40]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push ebx
mov edi, eax
push dword [esi + 0x78]
call fcn.00401f87
mov eax, edi
jmp 0x40465e
push ebx
call fcn.0040603f
test eax, eax
je 0x404653
cmp dword [0x42470c], ebx
jne 0x40457e
push ebx
push dword [esi + 0x6c]
call fcn.00401f87
jmp 0x40457e
push ebx
push dword [esi + 0x68]
call fcn.00401f87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret