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

Disassembly:
mov eax, dword [0x425be4]
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [0x425b80]
and eax, 0x20
push edi
mov dword [0x425c00], eax
call fcn.00401596
mov ebp, 0x42c400
push ebp
call fcn.00405ede
xor ebx, ebx
test eax, eax
jne 0x403298
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
je 0x403298
mov eax, dword [0x425bb8]
mov edx, dword [esi + 0x4c]
mov edi, 0x424f80
push edi
add edx, eax
push edx
add ecx, eax
push ecx
push dword [esi + 0x44]
call fcn.00405bd9
mov al, byte [0x424f80]
cmp al, bl
je 0x403298
cmp al, 0x22
jne 0x403257
push 0x22
mov edi, 0x424f81
push edi
call fcn.00405ab2
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x40328b
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40328b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403285
test al, 0x10
jne 0x40328b
push edi
call fcn.00405eb9
push edi
call fcn.00405e8d
push eax
push ebp
call sub.KERNEL32.dll_lstrcpyA
push ebp
call fcn.00405ede
test eax, eax
jne 0x4032ae
push dword [esi + 0x118]
push ebp
call fcn.00406159
xor ebp, ebp
inc ebp
test byte [0x425be4], 0x10
je 0x4032cd
cmp dword [0x425be0], ebx
jne 0x4032cd
call fcn.00401574
mov dword [0x423f78], ebp
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x4264a4]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x425c70], eax
cmp dword [esi + 0x50], 0xffffffff
mov edi, 0x425c40
je 0x403380
mov ecx, dword [0x4264a4]
mov dword [0x425c54], eax
lea eax, [esp + 0x10]
push edi
mov dword [esp + 0x14], 0x624e5f
mov dword [0x425c44], 0x403460
mov dword [0x425c50], ecx
mov dword [0x425c64], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x403456
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 [0x4264a4]
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 [0x40b09c], eax
push ebx
call fcn.004036eb
test eax, eax
je 0x403392
push 2
pop eax
jmp 0x403458
call fcn.00401596
cmp dword [0x425c20], ebx
jne 0x40342e
push 5
push dword [0x40b09c]
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 0x4033cf
push ebp
mov word [0x40a042], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
push edi
mov esi, 0x40a030
push esi
push ebx
call ebp
test eax, eax
jne 0x403402
push edi
push esi
push ebx
mov byte [0x40a038], bl
call ebp
push edi
mov dword [0x425c64], esi
mov byte [0x40a038], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x425c7c]
push ebx
push 0x402d35
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x4264a4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004036eb
mov eax, esi
jmp 0x403458
push ebx
call fcn.0040291a
test eax, eax
je 0x403450
cmp dword [0x425c74], ebx
jne 0x40338a
push 2
call fcn.004036eb
jmp 0x40338a
push ebp
call fcn.004036eb
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret