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

Disassembly:
mov eax, dword [0x42c380]
sub esp, 0x10
mov ecx, dword [eax + 0x84]
push ebx
push ebp
xor ebp, ebp
mov dword [0x42c368], ecx
mov cl, byte [eax + 0x43]
inc ebp
xor ebx, ebx
and ecx, ebp
cmp dword [0x42c38c], ebx
push esi
push edi
mov dword [0x42cbe0], ecx
jne 0x404671
push dword [0x409294]
call fcn.004066e2
test eax, eax
jne 0x40464a
mov eax, dword [0x42c380]
cmp dword [eax + 0x48], ebx
je 0x40464a
mov esi, 0x42b760
push esi
push dword [eax + 0x4c]
call fcn.00403dc2
push eax
mov eax, dword [0x42c380]
push dword [eax + 0x48]
call fcn.00403dc2
push eax
mov eax, dword [0x42c380]
push dword [eax + 0x44]
call fcn.004069f9
mov al, byte [0x42b760]
cmp al, bl
je 0x40464a
cmp al, 0x22
jne 0x404604
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov esi, eax
jmp 0x4045fc
cmp cl, 0x22
je 0x404602
push eax
call edi
mov cl, byte [eax]
cmp cl, bl
jne 0x4045f4
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x40463e
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40463e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404632
test al, 0x10
jne 0x40463e
push esi
call fcn.0040667b
cmp eax, esi
jb 0x40463e
mov byte [eax], bl
push esi
push dword [0x409294]
call sub.KERNEL32.dll_lstrcpyA
push dword [0x409294]
call fcn.004066e2
test eax, eax
mov eax, dword [0x42c380]
jne 0x404671
push dword [eax + 0x74]
push dword [0x409294]
call fcn.00406a5d
mov eax, dword [0x42c380]
mov ecx, dword [eax]
mov dword [0x423748], ecx
mov eax, dword [eax + 0xc]
add eax, dword [0x42cbd0]
mov dword [0x42c36c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [0x4092a0]
call fcn.00406a7f
call fcn.00404880
mov eax, dword [0x42c380]
cmp byte [eax + 0x42], bl
jne 0x404829
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x425358]
call dword [sym.imp.USER32.dll_LoadImageA]
mov edx, dword [0x42c380]
mov ecx, eax
xor eax, eax
mov dword [0x42c398], ecx
mov dword [0x4236c8], eax
cmp dword [edx + 0x14], 0xffffffff
je 0x404785
mov eax, dword [0x425358]
mov esi, 0x409270
push 0x423718
mov dword [0x42371c], 0x40204d
mov dword [0x423728], eax
mov dword [0x42372c], ecx
mov dword [0x42373c], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x404876
mov eax, dword [0x42c380]
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 [0x425358]
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 esi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4236c8], eax
mov dword [0x42cbc8], eax
mov eax, dword [0x42c380]
push ebx
push dword [eax + 0x2c]
call fcn.00402277
test eax, eax
je 0x4047a3
mov eax, ebp
jmp 0x404878
call fcn.00404880
push 5
mov dword [0x42cbc8], 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 0x4047da
push edi
mov word [0x4091fa], 0x3233
call esi
mov ebp, dword [sym.imp.USER32.dll_GetClassInfoA]
mov edi, 0x4236dc
mov esi, str.RichEdit20A
push edi
push esi
push ebx
call ebp
test eax, eax
jne 0x404812
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 0x404924
push ebx
push 0x69
push dword [0x425358]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x404878
push ebx
push dword [eax + 0x2c]
call fcn.00402277
test eax, eax
jne 0x40479c
call fcn.00404880
push ebx
call fcn.0040605e
test eax, eax
je 0x404868
cmp dword [0x42c374], ebx
jne 0x40479c
mov eax, dword [0x42c380]
push ebx
push dword [eax + 0x34]
call fcn.00402277
jmp 0x40479c
mov eax, dword [0x42c380]
push ebx
push dword [eax + 0x30]
call fcn.00402277
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret