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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [0x7eeddc]
push 6
call fcn.00405ba9
xor ebx, ebx
cmp eax, ebx
je 0x405410
call eax
movzx eax, ax
push eax
push 0x84f0c0
call fcn.004059e9
jmp 0x40546b
push 0x30
pop eax
push 0x78
mov word [0x84f0c0], ax
pop eax
push ebx
mov esi, 0x7c4a58
push esi
push ebx
mov word [0x84f0c2], ax
push str.Control_PanelDesktopResourceLocale
xor eax, eax
push 0x80000001
mov word [0x84f0c4], ax
call fcn.0040596b
cmp word [0x7c4a58], bx
jne 0x405460
push ebx
push esi
push 0x40870c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.0040596b
push esi
push 0x84f0c0
call sub.KERNEL32.dll_lstrcatW
call fcn.004039e6
mov eax, dword [0x7eee28]
and eax, 0x20
push 0x8430a8
mov dword [0x7eee80], eax
mov dword [0x7eee9c], 0x10000
call fcn.0040602c
test eax, eax
jne 0x40552d
mov ecx, dword [edi + 0x48]
cmp ecx, ebx
je 0x40552d
mov eax, dword [0x7eedf8]
mov edx, dword [edi + 0x4c]
push ebx
mov esi, 0x7ded40
push esi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [edi + 0x44]
call fcn.0040596b
mov ax, word [0x7ded40]
cmp ax, bx
je 0x40552d
cmp ax, 0x22
jne 0x4054e8
mov eax, 0x7ded42
push 0x22
push eax
mov esi, eax
call fcn.0040579d
xor ecx, ecx
mov word [eax], cx
push esi
call sub.KERNEL32.dll_lstrlenW
lea eax, [esi + eax*2 - 8]
cmp eax, esi
jbe 0x40551c
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40551c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405516
test al, 0x10
jne 0x40551c
push esi
call fcn.00405fff
push esi
call fcn.00405fd0
push eax
push 0x8430a8
call fcn.00405aa2
mov esi, 0x8430a8
push esi
call fcn.0040602c
test eax, eax
jne 0x405548
push dword [edi + 0x118]
push esi
call fcn.004060b4
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x7eedd8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x7e6d90], eax
cmp dword [edi + 0x50], 0xffffffff
mov esi, 0x7e6d60
je 0x4055fd
mov ecx, dword [0x40866c]
mov dword [ebp - 8], ecx
mov ecx, dword [0x408670]
mov dword [ebp - 4], ecx
mov ecx, dword [0x7eedd8]
mov dword [0x7e6d74], eax
lea eax, [ebp - 8]
push esi
mov dword [0x7e6d64], 0x401000
mov dword [0x7e6d70], ecx
mov dword [0x7e6d84], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x4056cf
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push ebx
push dword [0x7eedd8]
push ebx
push ebx
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 ebx
push eax
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x7b8a38], eax
push ebx
call fcn.0040141d
test eax, eax
je 0x40560f
push 2
pop eax
jmp 0x4056d1
call fcn.004039e6
cmp dword [0x7eeea0], ebx
jne 0x4056a6
push 5
push dword [0x7b8a38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call edi
test eax, eax
jne 0x405646
push str.RichEd32
call edi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
push str.RichEdit20A
push ebx
call edi
test eax, eax
jne 0x405673
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x7e6d84], 0x40862c
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x7e6d9c]
push ebx
push 0x404f2f
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x7eedd8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.0040141d
push 1
call fcn.004037da
mov eax, esi
jmp 0x4056d1
push ebx
call fcn.00404b32
test eax, eax
je 0x4056c8
cmp dword [0x7e6d94], ebx
jne 0x405607
push 2
call fcn.0040141d
jmp 0x405607
push 1
call fcn.0040141d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret