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

Disassembly:
sub esp, 0x14
mov eax, dword [0x40b0cc]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [0x46d070]
push 2
call fcn.00406dcf
mov esi, eax
xor ebx, ebx
push 0x30
pop eax
test esi, esi
je 0x405ea1
mov ecx, esi
call dword [0x4092c8]
call esi
movzx eax, ax
push eax
push 0x4ce000
call fcn.00406ae0
jmp 0x405ef9
push 0x78
mov word [0x4ce000], ax
mov esi, 0x433208
pop eax
push ebx
push esi
push ebx
mov word [0x4ce002], ax
xor eax, eax
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x4ce004], ax
call fcn.00406e60
cmp word [0x433208], bx
jne 0x405eee
push ebx
push esi
push 0x40970c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00406e60
push esi
push 0x4ce000
call sub.KERNEL32.dll_lstrcatW
push ebp
call fcn.00405d9f
mov eax, dword [0x46d06c]
mov ebp, 0x4c2000
and eax, 0x20
mov dword [0x46d13c], 0x10000
push ebp
mov dword [0x46d120], eax
call fcn.00406af9
test eax, eax
jne 0x405fbb
mov edx, dword [edi + 0x48]
test edx, edx
je 0x405fbb
mov ecx, dword [0x46d098]
mov esi, 0x45d000
mov eax, dword [edi + 0x4c]
push ebx
push esi
lea eax, [ecx + eax*2]
push eax
lea eax, [ecx + edx*2]
push eax
push dword [edi + 0x44]
call fcn.00406e60
mov ax, word [0x45d000]
test ax, ax
je 0x405fbb
push 0x22
pop ecx
cmp ax, cx
jne 0x405f78
push ecx
mov esi, 0x45d002
push esi
call fcn.00406ab7
xor ecx, ecx
mov word [eax], cx
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, 0xfffffffc
lea eax, [esi + eax*2]
cmp eax, esi
jbe 0x405fae
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405fae
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fa8
test al, 0x10
jne 0x405fae
push esi
call fcn.00407202
push esi
call fcn.00406a17
push eax
push ebp
call fcn.0040701f
push ebp
call fcn.00406af9
test eax, eax
jne 0x405fd1
push dword [edi + 0x118]
push ebp
call fcn.004062f1
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x465054]
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, eax
mov esi, 0x465000
mov dword [0x465038], ecx
cmp dword [edi + 0x50], 0xffffffff
pop ebp
je 0x406081
mov eax, dword [0x465054]
mov edi, 0x4097bc
push esi
mov dword [0x465004], 0x401000
mov dword [0x465010], eax
mov dword [0x465014], ecx
mov dword [0x465024], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x406038
xor eax, eax
jmp 0x406141
push ebx
lea eax, [esp + 0x10]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push ebx
push dword [0x465054]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x80000000
push ebx
push edi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x443210], eax
push ebx
call fcn.0040156e
test eax, eax
jne 0x40613e
call fcn.00405d9f
cmp dword [0x46d140], ebx
jne 0x406125
push 5
push dword [0x443210]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.0040661c
test eax, eax
jne 0x4060c6
push str.RichEd32
call fcn.0040661c
push esi
mov edi, str.RichEdit20W
push edi
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x4060f2
push esi
push str.RichEdit
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
mov dword [0x465024], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x465034]
push ebx
push 0x405370
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x465054]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.0040156e
push 1
call fcn.0040401a
mov eax, esi
jmp 0x406141
push ebx
call fcn.00405c80
test eax, eax
je 0x406153
cmp dword [0x46504c], ebx
jne 0x40613e
push 2
call fcn.0040156e
push 2
pop eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040818f
add esp, 0x14
ret
push 1
call fcn.0040156e
jmp 0x406031