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

Disassembly:
sub esp, 0x14
mov eax, dword [0x40d0fc]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x47b570]
push 2
call fcn.0040782d
mov esi, eax
xor ebx, ebx
push 0x30
pop eax
test esi, esi
je 0x4065c2
mov ecx, esi
call dword [0x40a2dc]
call esi
movzx eax, ax
push eax
push 0x4dc000
call fcn.004073b6
jmp 0x40661a
push 0x78
mov word [0x4dc000], ax
mov esi, 0x43ed58
pop eax
push ebx
push esi
push ebx
mov word [0x4dc002], ax
xor eax, eax
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x4dc004], ax
call fcn.004078be
cmp word [0x43ed58], bx
jne 0x40660f
push ebx
push esi
push 0x40b434
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004078be
push esi
push 0x4dc000
call sub.KERNEL32.dll_lstrcatW
call fcn.004064bf
mov eax, dword [0x47b56c]
mov ebp, 0x4d0000
and eax, 0x20
mov dword [0x47b63c], 0x10000
push ebp
mov dword [0x47b620], eax
call fcn.004073cf
test eax, eax
jne 0x4066db
mov edx, dword [edi + 0x48]
test edx, edx
je 0x4066db
mov ecx, dword [0x47b598]
mov esi, 0x46b500
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.004078be
mov ax, word [0x46b500]
test ax, ax
je 0x4066db
push 0x22
pop ecx
cmp ax, cx
jne 0x406698
push ecx
mov esi, 0x46b502
push esi
call fcn.0040738d
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 0x4066ce
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4066ce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4066c8
test al, 0x10
jne 0x4066ce
push esi
call fcn.00407c5d
push esi
call fcn.004072ed
push eax
push ebp
call fcn.00407a7a
push ebp
call fcn.004073cf
test eax, eax
jne 0x4066f1
push dword [edi + 0x118]
push ebp
call fcn.00406a2d
xor ebp, ebp
inc ebp
test byte [0x47b56c], 0x10
je 0x406710
cmp dword [0x47b564], ebx
jne 0x406710
call fcn.0040635c
mov dword [0x46a4e0], ebp
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x473554]
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, eax
mov esi, 0x473500
mov dword [0x473538], ecx
cmp dword [edi + 0x50], 0xffffffff
je 0x4067be
mov eax, dword [0x473554]
mov edi, 0x40b4e4
push esi
mov dword [0x473504], 0x401000
mov dword [0x473510], eax
mov dword [0x473514], ecx
mov dword [0x473524], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x406775
xor eax, eax
jmp 0x40687d
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push dword [0x473554]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x80000000
push ebx
push edi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x44ed60], eax
push ebx
call fcn.0040156e
test eax, eax
jne 0x40687a
call fcn.004064bf
cmp dword [0x47b640], ebx
jne 0x406861
push 5
push dword [0x44ed60]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.00406d58
test eax, eax
jne 0x406803
push str.RichEd32
call fcn.00406d58
push esi
mov edi, str.RichEdit20W
push edi
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x40682f
push esi
push str.RichEdit
push ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
push esi
mov dword [0x473524], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x473534]
push ebx
push 0x405a50
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x473554]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.0040156e
push ebp
call fcn.00404682
mov eax, esi
jmp 0x40687d
push ebx
call fcn.00406380
test eax, eax
je 0x406890
cmp dword [0x47354c], ebx
jne 0x40687a
push 2
call fcn.0040156e
push 2
pop eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408fb1
add esp, 0x14
ret
push ebp
call fcn.0040156e
jmp 0x40676e