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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x42bc20]
mov dword [esp], 3
call fcn.00408273
test eax, eax
push ecx
je 0x406122
call eax
movzx eax, ax
mov dword [esp], 0x435000
mov dword [esp + 4], eax
call fcn.00407bcf
jmp 0x4061a7
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x429200
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktopResourceLocale
mov dword [esp], 0x80000001
mov dword [0x435000], 0x7830
call fcn.00407b26
sub esp, 0x14
cmp byte [0x429200], 0
jne 0x406193
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x429200
mov dword [esp + 8], 0x40b41e
mov dword [esp + 4], str..DEFAULTControl_PanelInternational
mov dword [esp], 0x80000003
call fcn.00407b26
sub esp, 0x14
mov dword [esp + 4], 0x429200
mov dword [esp], 0x435000
call fcn.00407cd4
push ebx
push ebx
call fcn.00404acc
mov eax, dword [0x42bc84]
mov dword [esp], 0x434400
mov dword [0x42bbfc], 0x10000
and eax, 0x20
mov dword [0x42bbe0], eax
call fcn.00408147
test eax, eax
push edx
jne 0x4062aa
mov edx, dword [esi + 0x48]
test edx, edx
je 0x4062aa
mov eax, dword [0x42bc58]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x42c500
mov ecx, dword [esi + 0x4c]
add ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call fcn.00407b26
mov al, byte [0x42c500]
sub esp, 0x14
test al, al
je 0x4062aa
cmp al, 0x22
mov ebx, 0x42c500
jne 0x40624b
mov dword [esp + 4], 0x22
mov dword [esp], 0x42c501
mov ebx, 0x42c501
call fcn.00407890
push ecx
push ecx
mov byte [eax], 0
mov dword [esp], ebx
call fcn.00407cca
lea eax, [ebx + eax - 4]
push edx
cmp ebx, eax
jae 0x40628f
mov dword [esp + 4], str..exe
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
push ecx
push ecx
jne 0x40628f
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x406286
test al, 0x10
jne 0x40628f
mov dword [esp], ebx
call fcn.004078ba
push eax
mov dword [esp], ebx
call fcn.00407cde
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0x434400
call fcn.00407ca2
push ebx
push ebx
mov dword [esp], 0x434400
call fcn.00408147
test eax, eax
push edx
jne 0x4062d3
mov eax, dword [esi + 0x118]
mov dword [esp], 0x434400
mov dword [esp + 4], eax
call fcn.00407df2
push eax
push eax
mov eax, dword [0x42bca8]
mov dword [esp + 0x14], 0x8040
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x67
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadImageA]
sub esp, 0x18
cmp dword [esi + 0x50], 0xffffffff
mov dword [0x42c4d0], eax
je 0x4063f1
mov edx, dword [0x42bca8]
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x624e5f
mov dword [0x4291a4], 0x401000
mov dword [0x4291b4], eax
mov dword [0x4291c4], ebx
mov dword [esp], 0x4291a0
mov dword [0x4291b0], edx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
push esi
jne 0x406360
xor ebx, ebx
jmp 0x40653a
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], 0x30
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x42bca8]
sub esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x80000000
mov dword [esp + 8], 0
sub eax, ecx
mov dword [esp + 4], ebx
mov dword [esp], pe_nt_image_headers32
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [0x4291dc], eax
mov dword [esp], 0
call fcn.004038e9
test eax, eax
push ecx
mov ebx, eax
jne 0x406526
call fcn.00404acc
cmp dword [0x42bc00], 0
jne 0x4064ff
mov eax, dword [0x4291dc]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov dword [esp], str.RichEd20
call fcn.004081fa
test eax, eax
push edx
jne 0x406450
mov dword [esp], str.RichEd32
call fcn.004081fa
push eax
mov dword [esp + 8], 0x4291a0
mov dword [esp + 4], str.RichEdit20A
mov dword [esp], 0
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoA]
call ebx
sub esp, 0xc
test eax, eax
jne 0x4064aa
mov dword [esp + 8], 0x4291a0
mov dword [esp + 4], str.RichEdit
mov dword [esp], 0
call ebx
sub esp, 0xc
mov dword [0x4291c4], 0x40b398
mov dword [esp], 0x4291a0
call dword [sym.imp.USER32.dll_RegisterClassA]
push eax
mov eax, dword [0x42c4dc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404fd9
mov dword [esp + 8], 0
add eax, 0x69
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [0x42bca8]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
sub esp, 0x14
mov ebx, eax
mov dword [esp], 5
call fcn.004038e9
push esi
mov dword [esp], 1
call fcn.004049a0
jmp 0x406539
mov dword [esp], 0
call fcn.00404bf9
test eax, eax
push ecx
je 0x40652d
cmp dword [0x42c4c0], 0
jne 0x406526
mov dword [esp], 2
call fcn.004038e9
push edx
mov ebx, 2
jmp 0x40653a
mov dword [esp], 1
call fcn.004038e9
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret