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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x42a50c]
push esi
push edi
push 6
call fcn.00405b62
xor edi, edi
cmp eax, edi
je 0x4053e9
call eax
movzx eax, ax
push eax
push 0x437000
call fcn.004059a4
jmp 0x405443
push edi
mov esi, 0x4231d8
push esi
push edi
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x437000], 0x30
mov word [0x437002], 0x78
mov word [0x437004], di
call fcn.0040592a
cmp word [0x4231d8], di
jne 0x405438
push edi
push esi
push 0x408804
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.0040592a
push esi
push 0x437000
call sub.KERNEL32.dll_lstrcatW
call fcn.00403a34
mov eax, dword [0x42a568]
and eax, 0x20
push 0x435800
mov dword [0x42a5c0], eax
call fcn.00405fd5
test eax, eax
jne 0x4054f9
mov ecx, dword [ebx + 0x48]
cmp ecx, edi
je 0x4054f9
mov eax, dword [0x42a538]
mov edx, dword [ebx + 0x4c]
push edi
mov esi, 0x4284a0
push esi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [ebx + 0x44]
call fcn.0040592a
mov ax, word [0x4284a0]
cmp ax, di
je 0x4054f9
cmp ax, 0x22
jne 0x4054b4
mov eax, 0x4284a2
push 0x22
push eax
mov esi, eax
call fcn.0040575c
mov word [eax], di
push esi
call sub.KERNEL32.dll_lstrlenW
lea eax, [esi + eax*2 - 8]
cmp eax, esi
jbe 0x4054e8
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4054e8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4054e2
test al, 0x10
jne 0x4054e8
push esi
call fcn.00405fa9
push esi
call fcn.00405f7a
push eax
push 0x435800
call fcn.00405a5d
mov esi, 0x435800
push esi
call fcn.00405fd5
test eax, eax
jne 0x405514
push dword [ebx + 0x118]
push esi
call fcn.0040605d
push 0x8040
push edi
push edi
push 1
push 0x67
push dword [0x42a508]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x4294d0], eax
cmp dword [ebx + 0x50], 0xffffffff
mov esi, 0x4294a0
je 0x4055c9
mov ecx, dword [0x408764]
mov dword [ebp - 8], ecx
mov ecx, dword [0x408768]
mov dword [ebp - 4], ecx
mov ecx, dword [0x42a508]
mov dword [0x4294b4], eax
lea eax, [ebp - 8]
push esi
mov dword [0x4294a4], 0x401000
mov dword [0x4294b0], ecx
mov dword [0x4294c4], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x405690
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push edi
push dword [0x42a508]
push edi
push edi
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 edi
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4219d0], eax
push edi
call fcn.00401411
test eax, eax
je 0x4055db
push 2
pop eax
jmp 0x405692
call fcn.00403a34
cmp dword [0x42a5e0], edi
jne 0x405667
push 5
push dword [0x4219d0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call ebx
test eax, eax
jne 0x40560e
push str.RichEd32
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
push str.RichEdit20A
push edi
call ebx
test eax, eax
jne 0x40563b
push esi
push str.RichEdit
push edi
call ebx
push esi
mov dword [0x4294c4], 0x408724
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x4294dc]
push edi
push 0x404f08
add eax, 0x69
movzx eax, ax
push edi
push eax
push dword [0x42a508]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.00401411
mov eax, esi
jmp 0x405692
push edi
call fcn.00404b11
test eax, eax
je 0x405689
cmp dword [0x4294d4], edi
jne 0x4055d3
push 2
call fcn.00401411
jmp 0x4055d3
push 1
call fcn.00401411
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret