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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [0x42f0f4]
push 2
call fcn.004062a4
xor ebx, ebx
test eax, eax
je 0x4054fc
call eax
movzx eax, ax
push eax
push 0x436000
call fcn.00405fc6
jmp 0x40554b
push ebx
mov esi, 0x429528
mov word [0x436000], 0x7830
push esi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov byte [0x436002], bl
call fcn.00406335
cmp byte [0x429528], bl
jne 0x405540
push ebx
push esi
push 0x4084be
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00406335
push esi
push 0x436000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405411
mov eax, dword [0x42f0f0]
mov ebp, 0x435400
and eax, 0x20
mov dword [0x42f1bc], 0x10000
push ebp
mov dword [0x42f1a0], eax
call fcn.00405fdf
test eax, eax
jne 0x4055fe
mov edx, dword [edi + 0x48]
test edx, edx
je 0x4055fe
mov ecx, dword [0x42f118]
mov esi, 0x42e080
mov eax, dword [edi + 0x4c]
push ebx
push esi
add eax, ecx
push eax
lea eax, [edx + ecx]
push eax
push dword [edi + 0x44]
call fcn.00406335
mov al, byte [0x42e080]
test al, al
je 0x4055fe
cmp al, 0x22
jne 0x4055bc
push 0x22
mov esi, 0x42e081
push esi
call fcn.00405fa2
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
add eax, 0xfffffffc
add eax, esi
cmp eax, esi
jbe 0x4055f1
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4055f1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055eb
test al, 0x10
jne 0x4055f1
push esi
call fcn.0040666b
push esi
call fcn.00405f04
push eax
push ebp
call fcn.004064c9
push ebp
call fcn.00405fdf
test eax, eax
jne 0x405614
push dword [edi + 0x118]
push ebp
call fcn.00405932
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x42e8d4]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, eax
mov ebp, 0x42e880
mov dword [0x42e8b8], ecx
cmp dword [edi + 0x50], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_RegisterClassA]
je 0x4056c1
mov eax, dword [0x42e8d4]
mov esi, 0x408528
push ebp
mov dword [0x42e884], 0x401000
mov dword [0x42e890], eax
mov dword [0x42e894], ecx
mov dword [0x42e8a4], esi
call edi
test ax, ax
jne 0x405678
xor eax, eax
jmp 0x40577e
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push dword [0x42e8d4]
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 [0x42a530], eax
push ebx
call fcn.004014cb
test eax, eax
jne 0x40577b
call fcn.00405411
cmp dword [0x42f1c0], ebx
jne 0x405762
push 5
push dword [0x42a530]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.00405c20
test eax, eax
jne 0x405706
push str.RichEd32
call fcn.00405c20
mov esi, dword [sym.imp.USER32.dll_GetClassInfoA]
push ebp
push str.RichEdit20A
push ebx
call esi
test eax, eax
jne 0x40572f
push ebp
push str.RichEdit
push ebx
call esi
push ebp
mov dword [0x42e8a4], 0x408508
call edi
mov eax, dword [0x42e8b4]
push ebx
push 0x404ac2
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x42e8d4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004014cb
push 1
call fcn.00403888
mov eax, esi
jmp 0x40577e
push ebx
call fcn.004052f2
test eax, eax
je 0x405786
cmp dword [0x42e8cc], ebx
jne 0x40577b
push 2
call fcn.004014cb
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 1
call fcn.004014cb
jmp 0x405671