Function at 0x405e6e
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.00406ddf
mov esi, eax
xor ebx, ebx
push 0x30
pop eax
test esi, esi
je 0x405eb1
mov ecx, esi
call dword [0x4092cc]
call esi
movzx eax, ax
push eax
push 0x4d8000
call fcn.00406af0
jmp 0x405f09
push 0x78
mov word [0x4d8000], ax
mov esi, 0x43cd58
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.00406e70
cmp word [0x43cd58], bx
jne 0x405efe
push ebx
push esi
push 0x40970c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00406e70
push esi
push 0x4d8000
call sub.KERNEL32.dll_lstrcatW
push ebp
call fcn.00405daf
mov eax, dword [0x477d4c]
mov ebp, 0x4cc000
and eax, 0x20
mov dword [0x477e1c], 0x10000
push ebp
mov dword [0x477e00], eax
call fcn.00406b09
test eax, eax
jne 0x405fcb
mov edx, dword [edi + 0x48]
test edx, edx
je 0x405fcb
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.00406e70
mov ax, word [0x467ce0]
test ax, ax
je 0x405fcb
push 0x22
pop ecx
cmp ax, cx
jne 0x405f88
push ecx
mov esi, 0x467ce2
push esi
call fcn.00406ac7
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 0x405fbe
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405fbe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fb8
test al, 0x10
jne 0x405fbe
push esi
call fcn.00407211
push esi
call fcn.00406a27
push eax
push ebp
call fcn.0040702e
push ebp
call fcn.00406b09
test eax, eax
jne 0x405fe1
push dword [edi + 0x118]
push ebp
call fcn.00406301
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 0x406091
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 0x406048
xor eax, eax
jmp 0x406151
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 [0x44cd60], eax
push ebx
call fcn.0040156e
test eax, eax
jne 0x40614e
call fcn.00405daf
cmp dword [0x477e20], ebx
jne 0x406135
push 5
push dword [0x44cd60]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.0040662c
test eax, eax
jne 0x4060d6
push str.RichEd32
call fcn.0040662c
push esi
mov edi, str.RichEdit20W
push edi
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x406102
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 0x405380
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.0040402d
mov eax, esi
jmp 0x406151
push ebx
call fcn.00405c90
test eax, eax
je 0x406163
cmp dword [0x46fd2c], ebx
jne 0x40614e
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.00408561
add esp, 0x14
ret
push 1
call fcn.0040156e
jmp 0x406041