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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x7a8d2c]
push esi
push edi
push 6
call fcn.00405cb1
xor esi, esi
cmp eax, esi
je 0x40542c
call eax
movzx eax, ax
push eax
push 0x7b5000
call fcn.00405a70
jmp 0x405486
push esi
mov edi, 0x7a1a08
push edi
push esi
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x7b5000], 0x30
mov word [0x7b5002], 0x78
mov word [0x7b5004], si
call fcn.004059f6
cmp word [0x7a1a08], si
jne 0x40547b
push esi
push edi
push 0x40870c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004059f6
push edi
push 0x7b5000
call sub.KERNEL32.dll_lstrcatW
call fcn.00403a1d
mov eax, dword [0x7a8d88]
and eax, 0x20
push 0x7b3800
mov dword [0x7a8de0], eax
mov dword [0x7a8dfc], 0x10000
call fcn.00406128
test eax, eax
jne 0x405546
mov ecx, dword [ebx + 0x48]
cmp ecx, esi
je 0x405546
mov eax, dword [0x7a8d58]
mov edx, dword [ebx + 0x4c]
push esi
mov edi, 0x7a6cc0
push edi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [ebx + 0x44]
call fcn.004059f6
mov ax, word [0x7a6cc0]
cmp ax, si
je 0x405546
cmp ax, 0x22
jne 0x405501
mov eax, 0x7a6cc2
push 0x22
push eax
mov edi, eax
call fcn.004057b4
mov word [eax], si
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [edi + eax*2 - 8]
cmp eax, edi
jbe 0x405535
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405535
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40552f
test al, 0x10
jne 0x405535
push edi
call fcn.004060fc
push edi
call fcn.004060cd
push eax
push 0x7b3800
call fcn.00405b29
mov edi, 0x7b3800
push edi
call fcn.00406128
test eax, eax
jne 0x405561
push dword [ebx + 0x118]
push edi
call fcn.0040625b
push 0x8040
push esi
push esi
push 1
push 0x67
push dword [0x7a8d28]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x7a7cf0], eax
cmp dword [ebx + 0x50], 0xffffffff
mov edi, 0x7a7cc0
je 0x405616
mov ecx, dword [0x40866c]
mov dword [ebp - 8], ecx
mov ecx, dword [0x408670]
mov dword [ebp - 4], ecx
mov ecx, dword [0x7a8d28]
mov dword [0x7a7cd4], eax
lea eax, [ebp - 8]
push edi
mov dword [0x7a7cc4], 0x401000
mov dword [0x7a7cd0], ecx
mov dword [0x7a7ce4], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x4056e8
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push esi
push dword [0x7a8d28]
push esi
push esi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push dword [ebp - 0x18]
push 0x80000000
push esi
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x7a0200], eax
push esi
call fcn.00401411
test eax, eax
je 0x405628
push 2
pop eax
jmp 0x4056ea
call fcn.00403a1d
cmp dword [0x7a8e00], esi
jne 0x4056bf
push 5
push dword [0x7a0200]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.00405c2e
test eax, eax
jne 0x40565f
push str.RichEd32
call fcn.00405c2e
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoW]
push edi
push str.RichEdit20A
push esi
call ebx
test eax, eax
jne 0x40568c
push edi
push str.RichEdit
push esi
call ebx
push edi
mov dword [0x7a7ce4], 0x40862c
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x7a7cfc]
push esi
push 0x404f4b
add eax, 0x69
movzx eax, ax
push esi
push eax
push dword [0x7a8d28]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.00401411
push 1
call fcn.00403811
mov eax, esi
jmp 0x4056ea
push esi
call fcn.00404b54
test eax, eax
je 0x4056e1
cmp dword [0x7a7cf4], esi
jne 0x405620
push 2
call fcn.00401411
jmp 0x405620
push 1
call fcn.00401411
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret