Function at 0x4053ed
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [0x42a5ac]
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push 0x437000
call fcn.00405971
call fcn.00403a67
mov eax, dword [0x42a604]
and eax, 0x20
push 0x435800
mov dword [0x42a620], eax
call fcn.00405f86
xor ebx, ebx
test eax, eax
jne 0x4054c8
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
je 0x4054c8
mov eax, dword [0x42a5d8]
mov edx, dword [esi + 0x4c]
push ebx
mov edi, 0x428540
push edi
lea edx, [eax + edx*2]
push edx
lea eax, [eax + ecx*2]
push eax
push dword [esi + 0x44]
call fcn.004058f7
mov ax, word [0x428540]
cmp ax, bx
je 0x4054c8
cmp ax, 0x22
jne 0x405483
mov eax, 0x428542
push 0x22
push eax
mov edi, eax
call fcn.0040572b
mov word [eax], bx
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [edi + eax*2 - 8]
cmp eax, edi
jbe 0x4054b7
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4054b7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4054b1
test al, 0x10
jne 0x4054b7
push edi
call fcn.00405f5a
push edi
call fcn.00405f2b
push eax
push 0x435800
call fcn.00405a2a
mov edi, 0x435800
push edi
call fcn.00405f86
test eax, eax
jne 0x4054e3
push dword [esi + 0x118]
push edi
call fcn.0040600e
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x42a5a8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x429570], eax
cmp dword [esi + 0x50], 0xffffffff
mov edi, 0x429540
je 0x405598
mov ecx, dword [0x408768]
mov dword [ebp - 8], ecx
mov ecx, dword [0x40876c]
mov dword [ebp - 4], ecx
mov ecx, dword [0x42a5a8]
mov dword [0x429554], eax
lea eax, [ebp - 8]
push edi
mov dword [0x429544], 0x401000
mov dword [0x429550], ecx
mov dword [0x429564], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40565f
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 [0x42a5a8]
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 [0x421a70], eax
push ebx
call fcn.00401411
test eax, eax
je 0x4055aa
push 2
pop eax
jmp 0x405661
call fcn.00403a67
cmp dword [0x42a640], ebx
jne 0x405636
push 5
push dword [0x421a70]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call esi
test eax, eax
jne 0x4055dd
push str.RichEd32
call esi
mov esi, dword [sym.imp.USER32.dll_GetClassInfoW]
push edi
push str.RichEdit20A
push ebx
call esi
test eax, eax
jne 0x40560a
push edi
push str.RichEdit
push ebx
call esi
push edi
mov dword [0x429564], 0x408728
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x42957c]
push ebx
push 0x404f3a
add eax, 0x69
movzx eax, ax
push ebx
push eax
push dword [0x42a5a8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.00401411
mov eax, esi
jmp 0x405661
push ebx
call fcn.00404b3f
test eax, eax
je 0x405658
cmp dword [0x429574], ebx
jne 0x4055a2
push 2
call fcn.00401411
jmp 0x4055a2
push 1
call fcn.00401411
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret