Function at 0x404598
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
mov eax, dword [0x42c39c]
sub esp, 0x10
mov ecx, dword [eax + 0x84]
push ebx
push ebp
xor ebp, ebp
mov dword [0x422ec0], ecx
mov cl, byte [eax + 0x43]
inc ebp
xor ebx, ebx
and ecx, ebp
cmp dword [0x42c3a8], ebx
push esi
push edi
mov dword [0x42c3b8], ecx
jne 0x4046ae
push dword [0x409294]
call fcn.004066f6
test eax, eax
jne 0x404687
mov eax, dword [0x42c39c]
cmp dword [eax + 0x48], ebx
je 0x404687
mov esi, 0x42b780
push esi
push dword [eax + 0x4c]
call fcn.00403df3
push eax
mov eax, dword [0x42c39c]
push dword [eax + 0x48]
call fcn.00403df3
push eax
mov eax, dword [0x42c39c]
push dword [eax + 0x44]
call fcn.004069ff
mov al, byte [0x42b780]
cmp al, bl
je 0x404687
cmp al, 0x22
jne 0x404641
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
jmp 0x404639
cmp cl, 0x22
je 0x40463f
push eax
call edi
mov cl, byte [eax]
cmp cl, bl
jne 0x404631
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x40467b
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40467b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40466f
test al, 0x10
jne 0x40467b
push esi
call fcn.0040668f
cmp eax, esi
jb 0x40467b
mov byte [eax], bl
push esi
push dword [0x409294]
call sub.KERNEL32.dll_lstrcpyA
push dword [0x409294]
call fcn.004066f6
test eax, eax
mov eax, dword [0x42c39c]
jne 0x4046ae
push dword [eax + 0x74]
push dword [0x409294]
call fcn.00406a63
mov eax, dword [0x42c39c]
mov ecx, dword [eax]
mov dword [0x423748], ecx
mov eax, dword [eax + 0xc]
add eax, dword [0x42cbf0]
mov dword [0x42c388], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [0x4092a0]
call fcn.00406a8a
call fcn.004048cb
mov eax, dword [0x42c39c]
cmp byte [eax + 0x42], bl
jne 0x404874
push RegCloseKey
push ebx
push ebx
push ebp
push 0x67
push dword [0x425358]
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [0x42c3b4], eax
call esi
mov ecx, dword [0x42c39c]
mov dword [0x4236c8], eax
cmp dword [ecx + 0x14], 0xffffffff
je 0x4047cb
mov eax, dword [0x425358]
mov edi, 0x409270
mov dword [0x423728], eax
mov eax, dword [0x42c3b4]
push 0x423718
mov dword [0x42371c], 0x40204d
mov dword [0x42372c], eax
mov dword [0x42373c], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4048c1
mov eax, dword [0x42c39c]
push ebx
mov ecx, dword [eax + 0x14]
mov dword [0x42cc00], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x42cc04], ecx
mov eax, dword [eax + 0x1c]
mov dword [0x42cbfc], eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x425358]
push ebx
call esi
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0xcf0000
push 0x40c460
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4236c8], eax
mov dword [0x42cbe8], eax
mov eax, dword [0x42c39c]
push ebx
push dword [eax + 0x2c]
call fcn.00402262
test eax, eax
je 0x4047e9
mov eax, ebp
jmp 0x4048c3
call fcn.004048cb
push 5
mov dword [0x42cbe8], ebx
push dword [0x4236c8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, str.RichEd20.dll
push edi
call esi
test eax, eax
jne 0x404820
push edi
mov word [0x4091fa], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
mov edi, 0x4236dc
mov esi, 0x409204
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404858
push edi
push esi
push ebx
mov byte [0x40920c], bl
call ebp
push edi
mov dword [0x423700], esi
mov byte [0x40920c], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push 0x40496e
push dword [0x4236c8]
push 0x69
push dword [0x425358]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x4048c3
push ebx
push dword [eax + 0x2c]
call fcn.00402262
test eax, eax
jne 0x4047e2
call fcn.004048cb
push ebx
call fcn.00405ff2
test eax, eax
je 0x4048b3
cmp dword [0x42c390], ebx
jne 0x4047e2
mov eax, dword [0x42c39c]
push ebx
push dword [eax + 0x34]
call fcn.00402262
jmp 0x4047e2
mov eax, dword [0x42c39c]
push ebx
push dword [eax + 0x30]
call fcn.00402262
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret