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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [0x447038]
push 2
call fcn.0040733b
xor ebx, ebx
test eax, eax
je 0x406260
call eax
movzx eax, ax
push eax
push 0x478000
call fcn.00406f3f
jmp 0x4062af
push ebx
mov esi, 0x4291d8
mov word [0x478000], 0x7830
push esi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov byte [0x478002], bl
call fcn.004073cc
cmp byte [0x4291d8], bl
jne 0x4062a4
push ebx
push esi
push 0x409b8a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004073cc
push esi
push 0x478000
call sub.KERNEL32.dll_lstrcatA
call fcn.00406175
mov eax, dword [0x447034]
mov ebp, 0x472000
and eax, 0x20
mov dword [0x4470fc], 0x10000
push ebp
mov dword [0x4470e0], eax
call fcn.00406f58
test eax, eax
jne 0x406362
mov edx, dword [edi + 0x48]
test edx, edx
je 0x406362
mov ecx, dword [0x447058]
mov esi, 0x43efc0
mov eax, dword [edi + 0x4c]
push ebx
push esi
add eax, ecx
push eax
lea eax, [edx + ecx]
push eax
push dword [edi + 0x44]
call fcn.004073cc
mov al, byte [0x43efc0]
test al, al
je 0x406362
cmp al, 0x22
jne 0x406320
push 0x22
mov esi, 0x43efc1
push esi
call fcn.00406f1b
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
add eax, 0xfffffffc
add eax, esi
cmp eax, esi
jbe 0x406355
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406355
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40634f
test al, 0x10
jne 0x406355
push esi
call fcn.00407757
push esi
call fcn.00406e7d
push eax
push ebp
call fcn.00407560
push ebp
call fcn.00406f58
test eax, eax
jne 0x406378
push dword [edi + 0x118]
push ebp
call fcn.004066e3
xor ebp, ebp
inc ebp
test byte [0x447034], 0x10
je 0x406397
cmp dword [0x44702c], ebx
jne 0x406397
call fcn.0040601f
mov dword [0x43e7a0], ebp
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x443014]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, eax
mov esi, 0x442fc0
mov dword [0x442ff8], ecx
cmp dword [edi + 0x50], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_RegisterClassA]
je 0x40644a
mov eax, dword [0x443014]
push esi
mov dword [0x442fc4], 0x401000
mov dword [0x442fd0], eax
mov dword [0x442fd4], ecx
mov dword [0x442fe4], 0x409bf4
call edi
test ax, ax
jne 0x4063fd
xor eax, eax
jmp 0x40650e
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push dword [0x443014]
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 0x409bf4
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4311e0], eax
push ebx
call fcn.0040153c
test eax, eax
jne 0x40650b
call fcn.00406175
cmp dword [0x447100], ebx
jne 0x4064f2
push 5
push dword [0x4311e0]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.004069e9
test eax, eax
jne 0x40648f
push str.RichEd32
call fcn.004069e9
push esi
mov esi, dword [sym.imp.USER32.dll_GetClassInfoA]
push str.RichEdit20A
push ebx
call esi
test eax, eax
jne 0x4064c0
push 0x442fc0
push str.RichEdit
push ebx
call esi
push 0x442fc0
mov dword [0x442fe4], 0x409bd4
call edi
mov eax, dword [0x442ff4]
push ebx
push 0x4057c4
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x443014]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.0040153c
push ebp
call fcn.004044fe
mov eax, esi
jmp 0x40650e
push ebx
call fcn.00406040
test eax, eax
je 0x406516
cmp dword [0x44300c], ebx
jne 0x40650b
push 2
call fcn.0040153c
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ebp
call fcn.0040153c
jmp 0x4063f6