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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [0x454d18]
push 2
call fcn.0040730e
xor ebx, ebx
test eax, eax
je 0x406212
call eax
movzx eax, ax
push eax
push 0x485000
call fcn.00406f12
jmp 0x406261
push ebx
mov esi, 0x435d28
mov word [0x485000], 0x7830
push esi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov byte [0x485002], bl
call fcn.0040739f
cmp byte [0x435d28], bl
jne 0x406256
push ebx
push esi
push 0x409b9a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.0040739f
push esi
push 0x485000
call sub.KERNEL32.dll_lstrcatA
call fcn.00406127
mov eax, dword [0x454d14]
mov ebp, 0x47f000
and eax, 0x20
mov dword [0x454ddc], 0x10000
push ebp
mov dword [0x454dc0], eax
call fcn.00406f2b
test eax, eax
jne 0x406314
mov edx, dword [edi + 0x48]
test edx, edx
je 0x406314
mov ecx, dword [0x454d38]
mov esi, 0x44cca0
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.0040739f
mov al, byte [0x44cca0]
test al, al
je 0x406314
cmp al, 0x22
jne 0x4062d2
push 0x22
mov esi, 0x44cca1
push esi
call fcn.00406eee
mov byte [eax], bl
push esi
call sub.KERNEL32.dll_lstrlenA
add eax, 0xfffffffc
add eax, esi
cmp eax, esi
jbe 0x406307
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406307
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406301
test al, 0x10
jne 0x406307
push esi
call fcn.0040772a
push esi
call fcn.00406e50
push eax
push ebp
call fcn.00407533
push ebp
call fcn.00406f2b
test eax, eax
jne 0x40632a
push dword [edi + 0x118]
push ebp
call fcn.004066b6
xor ebp, ebp
inc ebp
test byte [0x454d14], 0x10
je 0x406349
cmp dword [0x454d0c], ebx
jne 0x406349
call fcn.00405fd1
mov dword [0x44c480], ebp
push 0x8040
push ebx
push ebx
push ebp
push 0x67
push dword [0x450cf4]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, eax
mov esi, 0x450ca0
mov dword [0x450cd8], ecx
cmp dword [edi + 0x50], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_RegisterClassA]
je 0x4063fc
mov eax, dword [0x450cf4]
push esi
mov dword [0x450ca4], 0x401000
mov dword [0x450cb0], eax
mov dword [0x450cb4], ecx
mov dword [0x450cc4], 0x409c04
call edi
test ax, ax
jne 0x4063af
xor eax, eax
jmp 0x4064c0
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 [0x450cf4]
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 0x409c04
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x43dd30], eax
push ebx
call fcn.0040153c
test eax, eax
jne 0x4064bd
call fcn.00406127
cmp dword [0x454de0], ebx
jne 0x4064a4
push 5
push dword [0x43dd30]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.RichEd20
call fcn.004069bc
test eax, eax
jne 0x406441
push str.RichEd32
call fcn.004069bc
push esi
mov esi, dword [sym.imp.USER32.dll_GetClassInfoA]
push str.RichEdit20A
push ebx
call esi
test eax, eax
jne 0x406472
push 0x450ca0
push str.RichEdit
push ebx
call esi
push 0x450ca0
mov dword [0x450cc4], 0x409be4
call edi
mov eax, dword [0x450cd4]
push ebx
push 0x405776
add eax, 0x69
push ebx
movzx eax, ax
push eax
push dword [0x450cf4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.0040153c
push ebp
call fcn.004044b0
mov eax, esi
jmp 0x4064c0
push ebx
call fcn.00405ff2
test eax, eax
je 0x4064c8
cmp dword [0x450cec], ebx
jne 0x4064bd
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 0x4063a8