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

Disassembly:
sub esp, 0x14
mov eax, dword [0x40b0f8]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [0x477d50]
push 2
call fcn.00406dff
mov esi, eax
xor ebx, ebx
push 0x30
pop eax
test esi, esi
je 0x405ed1
mov ecx, esi
call dword [0x4092c8]
call esi
movzx eax, ax
push eax
push 0x4d8000
call fcn.00406b10
jmp 0x405f29
push 0x78
mov word [0x4d8000], ax
mov esi, 0x43cd60
pop eax
push ebx
push esi
push ebx
mov word [0x4d8002], ax
xor eax, eax
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x4d8004], ax
call fcn.00406e90
cmp word [0x43cd60], bx
jne 0x405f1e
push ebx
push esi
push 0x40970c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00406e90
push esi
push 0x4d8000
call sub.KERNEL32.dll_lstrcatW
push ebp
call fcn.00405dcf
mov eax, dword [0x477d4c]
mov ebp, 0x4cc000
and eax, 0x20
mov dword [0x477e1c], 0x10000
push ebp
mov dword [0x477e00], eax
call fcn.00406b29
test eax, eax
jne 0x405feb
mov edx, dword [edi + 0x48]
test edx, edx
je 0x405feb
mov ecx, dword [0x477d78]
mov esi, 0x467ce0
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.00406e90
mov ax, word [0x467ce0]
test ax, ax
je 0x405feb
push 0x22
pop ecx
cmp ax, cx
jne 0x405fa8
push ecx
mov esi, 0x467ce2
push esi
call fcn.00406ae7
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 0x405fde
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405fde
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fd8
test al, 0x10
jne 0x405fde
push esi
call fcn.0040722f
push esi
call fcn.00406a47
push eax
push ebp
call fcn.0040704c
push ebp
call fcn.00406b29
test eax, eax
jne 0x406001
push dword [edi + 0x118]
push ebp
call fcn.00406321
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x46fd34]
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, eax
mov esi, 0x46fce0
mov dword [0x46fd18], ecx
cmp dword [edi + 0x50], 0xffffffff
pop ebp
je 0x4060b1
mov eax, dword [0x46fd34]
mov edi, 0x4097bc
push esi
mov dword [0x46fce4], 0x401000
mov dword [0x46fcf0], eax
mov dword [0x46fcf4], ecx
mov dword [0x46fd04], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x406068
xor eax, eax
jmp 0x406171
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 [0x46fd34]
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 [0x44cd68], eax
push ebx
call fcn.0040156e
test eax, eax
jne 0x40616e
call fcn.00405dcf
cmp dword [0x477e20], ebx
jne 0x406155
push 5
push dword [0x44cd68]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.0040664c
test eax, eax
jne 0x4060f6
push str.RichEd32
call fcn.0040664c
push esi
mov edi, str.RichEdit20W
push edi
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x406122
push esi
push str.RichEdit
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
mov dword [0x46fd04], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x46fd14]
push ebx
push 0x4053a0
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x46fd34]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.0040156e
push 1
call fcn.0040403a
mov eax, esi
jmp 0x406171
push ebx
call fcn.00405cb0
test eax, eax
je 0x406183
cmp dword [0x46fd2c], ebx
jne 0x40616e
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.00408581
add esp, 0x14
ret
push 1
call fcn.0040156e
jmp 0x406061