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

Disassembly:
mov eax, dword [0x423f30]
sub esp, 0x10
and eax, 0x20
push ebx
push ebp
push esi
mov esi, dword [0x423f28]
push edi
mov dword [0x423f80], eax
call fcn.004045ff
mov ebp, 0x429400
push ebp
call fcn.0040657e
xor ebx, ebx
test eax, eax
jne 0x404444
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x404444
mov edx, dword [esi + 0x44]
mov eax, dword [0x423f58]
mov edi, 0x422ec0
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.00406892
mov al, byte [0x422ec0]
cmp al, bl
je 0x404444
cmp al, 0x22
mov ebp, edi
jne 0x404400
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
call edi
mov ebp, eax
jmp 0x4043f8
cmp cl, 0x22
je 0x4043fe
push eax
call edi
mov cl, byte [eax]
cmp cl, bl
jne 0x4043f0
mov byte [eax], bl
push ebp
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + ebp - 4]
cmp eax, ebp
jbe 0x404434
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404434
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40442e
test al, 0x10
jne 0x404434
push ebp
call fcn.004064da
push ebp
push 0x429400
call sub.KERNEL32.dll_lstrcpyA
mov ebp, 0x429400
push ebp
call fcn.0040657e
test eax, eax
jne 0x40445a
push dword [esi + 0x10c]
push ebp
call fcn.004069aa
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x423f20]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x423708], eax
cmp dword [esi + 0x48], 0xffffffff
mov edi, 0x4236c0
je 0x404500
mov ecx, dword [0x423f20]
mov ebp, 0x4092ec
push edi
mov dword [0x4236c4], 0x401d69
mov dword [0x4236d0], ecx
mov dword [0x4236d4], eax
mov dword [0x4236e4], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4045f5
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x423f20]
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 [0x420910], eax
mov eax, dword [0x420910]
push ebx
mov dword [0x423f24], eax
push dword [esi + 0x64]
call fcn.00401f68
test eax, eax
je 0x40451f
xor eax, eax
inc eax
jmp 0x4045f7
call fcn.004045ff
cmp dword [0x423f9c], ebx
mov dword [0x423f24], ebx
jne 0x4045c8
push 5
push dword [0x420910]
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 0x404565
push str.RichEd20.dll
mov word [0x4092e2], 0x3233
call ebp
mov ebp, str.RichEdit20A
push edi
push ebp
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40459a
push edi
push ebp
push ebx
mov byte [0x4092d8], bl
call dword [sym.imp.USER32.dll_GetClassInfoA]
push edi
mov dword [0x4236e4], ebp
mov byte [0x4092d8], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x423700]
push ebx
add eax, 0x69
push 0x4046ba
movzx eax, ax
push ebx
push eax
push dword [0x423f20]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push ebx
mov edi, eax
push dword [esi + 0x78]
call fcn.00401f68
mov eax, edi
jmp 0x4045f7
push ebx
call fcn.00405f6a
test eax, eax
je 0x4045ec
cmp dword [0x4236ec], ebx
jne 0x404517
push ebx
push dword [esi + 0x6c]
call fcn.00401f68
jmp 0x404517
push ebx
push dword [esi + 0x68]
call fcn.00401f68
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret