Function at 0x4045b4
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 [0x422ec8], ecx
mov cl, byte [eax + 0x43]
inc ebp
xor ebx, ebx
and ecx, ebp
cmp dword [0x42c3a8], ebx
push esi
push edi
mov dword [0x42cbe0], ecx
jne 0x4046ca
push dword [0x409294]
call fcn.0040673a
test eax, eax
jne 0x4046a3
mov eax, dword [0x42c39c]
cmp dword [eax + 0x48], ebx
je 0x4046a3
mov esi, 0x42b780
push esi
push dword [eax + 0x4c]
call fcn.00403e0d
push eax
mov eax, dword [0x42c39c]
push dword [eax + 0x48]
call fcn.00403e0d
push eax
mov eax, dword [0x42c39c]
push dword [eax + 0x44]
call fcn.00406a55
mov al, byte [0x42b780]
cmp al, bl
je 0x4046a3
cmp al, 0x22
jne 0x40465d
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
jmp 0x404655
cmp cl, 0x22
je 0x40465b
push eax
call edi
mov cl, byte [eax]
cmp cl, bl
jne 0x40464d
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x404697
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404697
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40468b
test al, 0x10
jne 0x404697
push esi
call fcn.004066d3
cmp eax, esi
jb 0x404697
mov byte [eax], bl
push esi
push dword [0x409294]
call sub.KERNEL32.dll_lstrcpyA
push dword [0x409294]
call fcn.0040673a
test eax, eax
mov eax, dword [0x42c39c]
jne 0x4046ca
push dword [eax + 0x74]
push dword [0x409294]
call fcn.00406ab9
mov eax, dword [0x42c39c]
mov ecx, dword [eax]
mov dword [0x423750], ecx
mov eax, dword [eax + 0xc]
add eax, dword [0x42cbd0]
mov dword [0x42c388], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [0x4092a0]
call fcn.00406adb
call fcn.004048e7
mov eax, dword [0x42c39c]
cmp byte [eax + 0x42], bl
jne 0x404890
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x425360]
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 [0x4236d0], eax
cmp dword [ecx + 0x14], 0xffffffff
je 0x4047e7
mov eax, dword [0x425360]
mov edi, 0x409270
mov dword [0x423730], eax
mov eax, dword [0x42c3b4]
push 0x423720
mov dword [0x423724], 0x40204d
mov dword [0x423734], eax
mov dword [0x423744], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4048dd
mov eax, dword [0x42c39c]
push ebx
mov ecx, dword [eax + 0x14]
mov dword [0x42cbf4], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x42cbf8], ecx
mov eax, dword [eax + 0x1c]
mov dword [0x42cbf0], eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
push dword [0x425360]
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 0x40c468
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4236d0], eax
mov dword [0x42cbc8], eax
mov eax, dword [0x42c39c]
push ebx
push dword [eax + 0x2c]
call fcn.00402263
test eax, eax
je 0x404805
mov eax, ebp
jmp 0x4048df
call fcn.004048e7
push 5
mov dword [0x42cbc8], ebx
push dword [0x4236d0]
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 0x40483c
push edi
mov word [0x4091fa], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
mov edi, 0x4236e4
mov esi, str.RichEdit20A
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404874
push edi
push esi
push ebx
mov byte [0x40920c], bl
call ebp
push edi
mov dword [0x423708], esi
mov byte [0x40920c], 0x32
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push 0x40498b
push dword [0x4236d0]
push 0x69
push dword [0x425360]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x4048df
push ebx
push dword [eax + 0x2c]
call fcn.00402263
test eax, eax
jne 0x4047fe
call fcn.004048e7
push ebx
call fcn.00406098
test eax, eax
je 0x4048cf
cmp dword [0x42c390], ebx
jne 0x4047fe
mov eax, dword [0x42c39c]
push ebx
push dword [eax + 0x34]
call fcn.00402263
jmp 0x4047fe
mov eax, dword [0x42c39c]
push ebx
push dword [eax + 0x30]
call fcn.00402263
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret