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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x424bcc]
push 6
call fcn.00405a30
xor ebx, ebx
cmp eax, ebx
je 0x40531d
call eax
movzx eax, ax
push eax
push 0x42b000
call fcn.00405878
jmp 0x405367
push ebx
mov esi, 0x4211b8
push esi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x42b000], 0x7830
call fcn.00405801
cmp byte [0x4211b8], bl
jne 0x40535c
push ebx
push esi
push 0x408516
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00405801
push esi
push 0x42b000
call sub.KERNEL32.dll_lstrcatA
call fcn.004039fb
mov eax, dword [0x424c28]
and eax, 0x20
push 0x42a400
mov dword [0x424c80], eax
mov dword [0x424c9c], 0x10000
call fcn.00405aed
test eax, eax
jne 0x405422
cmp dword [edi + 0x48], ebx
je 0x405422
push ebx
mov esi, 0x423b60
push esi
push dword [edi + 0x4c]
call fcn.0040593a
push eax
push dword [edi + 0x48]
call fcn.0040593a
push eax
push dword [edi + 0x44]
call fcn.00405801
mov al, byte [0x423b60]
cmp al, bl
je 0x405422
cmp al, 0x22
jne 0x4053dd
mov eax, 0x423b61
push 0x22
push eax
mov esi, eax
call fcn.00405683
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + esi - 4]
cmp eax, esi
jbe 0x405411
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405411
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40540b
test al, 0x10
jne 0x405411
push esi
call fcn.00405ac6
push esi
call fcn.00405a99
push eax
push 0x42a400
call fcn.00405918
mov esi, 0x42a400
push esi
call fcn.00405aed
test eax, eax
jne 0x40543d
push dword [edi + 0x118]
push esi
call fcn.00405bc5
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x424bc8]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x424390], eax
cmp dword [edi + 0x50], 0xffffffff
mov esi, 0x424360
je 0x4054e3
mov ecx, dword [0x424bc8]
mov dword [0x424374], eax
lea eax, [ebp - 4]
push esi
mov dword [ebp - 4], 0x624e5f
mov dword [0x424364], 0x401000
mov dword [0x424370], ecx
mov dword [0x424384], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4055b5
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push ebx
push dword [0x424bc8]
push ebx
push ebx
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push dword [ebp - 0x14]
push 0x80000000
push ebx
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4205b4], eax
push ebx
call fcn.0040141a
test eax, eax
je 0x4054f5
push 2
pop eax
jmp 0x4055b7
call fcn.004039fb
cmp dword [0x424ca0], ebx
jne 0x40558c
push 5
push dword [0x4205b4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20
call edi
test eax, eax
jne 0x40552c
push str.RichEd32
call edi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
push esi
push str.RichEdit20A
push ebx
call edi
test eax, eax
jne 0x405559
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x424384], 0x4084a4
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x42439c]
push ebx
push 0x404e41
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x424bc8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.0040141a
push 1
call fcn.004037ef
mov eax, esi
jmp 0x4055b7
push ebx
call fcn.00404a4b
test eax, eax
je 0x4055ae
cmp dword [0x424394], ebx
jne 0x4054ed
push 2
call fcn.0040141a
jmp 0x4054ed
push 1
call fcn.0040141a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret