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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x430948]
mov dword [esp], 6
call fcn.004070a2
test eax, eax
push edx
je 0x406b4e
call eax
mov dword [esp], 0x43a000
movzx eax, ax
mov dword [esp + 4], eax
call fcn.0040734d
jmp 0x406bd3
mov dword [0x43a000], 0x7830
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x42ccd8
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktopResourceLocale
mov dword [esp], 0x80000001
call fcn.00407371
sub esp, 0x14
cmp byte [0x42ccd8], 0
jne 0x406bbf
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x42ccd8
mov dword [esp + 8], 0x40b37a
mov dword [esp + 4], str..DEFAULTControl_PanelInternational
mov dword [esp], 0x80000003
call fcn.00407371
sub esp, 0x14
mov dword [esp + 4], 0x42ccd8
mov dword [esp], 0x43a000
call fcn.00407292
push eax
push eax
call fcn.00406a20
mov eax, dword [0x4309a8]
and eax, 0x20
mov dword [0x430904], 0x10000
mov dword [0x4308e8], eax
mov dword [esp], 0x439400
call fcn.00407759
test eax, eax
push ebx
jne 0x406cd5
mov edx, dword [esi + 0x48]
test edx, edx
je 0x406cd5
mov eax, dword [0x430970]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4312a8
mov ecx, dword [esi + 0x4c]
add ecx, eax
lea eax, [edx + eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call fcn.00407371
mov al, byte [0x4312a8]
sub esp, 0x14
test al, al
je 0x406cd5
mov ebx, 0x4312a8
cmp al, 0x22
jne 0x406c78
mov dword [esp + 4], 0x22
mov dword [esp], 0x4312a9
call fcn.00407128
mov ebx, 0x4312a9
push ecx
push ecx
mov byte [eax], 0
mov dword [esp], ebx
call fcn.0040729e
lea eax, [ebx + eax - 4]
push edx
cmp eax, ebx
jbe 0x406cba
mov dword [esp + 4], str..exe
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
push ecx
push ecx
jne 0x406cba
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push edx
je 0x406cb1
test al, 0x10
jne 0x406cba
mov dword [esp], ebx
call fcn.004072aa
push ecx
mov dword [esp], ebx
call fcn.004072e2
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x439400
call fcn.00407326
push eax
push eax
mov dword [esp], 0x439400
call fcn.00407759
test eax, eax
push ebx
jne 0x406cfe
mov eax, dword [esi + 0x118]
mov dword [esp], 0x439400
mov dword [esp + 4], eax
call fcn.00407417
push ecx
push ecx
mov eax, dword [0x4309f8]
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 sub.USER32.dll_LoadImageA
mov dword [0x431248], eax
sub esp, 0x18
cmp dword [esi + 0x50], 0xffffffff
je 0x406e17
mov edx, dword [0x4309f8]
lea esi, [ebp - 0xc]
mov dword [0x42ccb8], edx
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x42ccac], 0x401000
mov dword [0x42ccbc], eax
mov dword [0x42cccc], esi
mov dword [esp], 0x42cca8
call sub.USER32.dll_RegisterClassA
xor ebx, ebx
test ax, ax
push edx
je 0x406f60
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x30
call sub.USER32.dll_SystemParametersInfoA
sub esp, 0x10
mov eax, dword [0x4309f8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x80000000
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], pe_nt_image_headers32
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [0x42dd08], eax
mov dword [esp], 0
call fcn.004035b6
test eax, eax
push esi
jne 0x406f5b
call fcn.00406a20
cmp dword [0x430908], 0
jne 0x406f21
mov eax, dword [0x42dd08]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push ebx
push ebx
mov dword [esp], str.RichEd20
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
push ecx
jne 0x406e73
mov dword [esp], str.RichEd32
call sub.KERNEL32.dll_LoadLibraryA
push edx
mov dword [esp + 8], 0x42cca8
mov dword [esp + 4], str.RichEdit20A
mov dword [esp], 0
call sub.USER32.dll_GetClassInfoA
sub esp, 0xc
test eax, eax
jne 0x406ecc
mov dword [esp + 8], 0x42cca8
mov dword [esp + 4], str.RichEdit
mov dword [esp], 0
call sub.USER32.dll_GetClassInfoA
sub esp, 0xc
mov dword [0x42cccc], 0x40b310
mov dword [esp], 0x42cca8
call sub.USER32.dll_RegisterClassA
push eax
mov eax, dword [0x431278]
mov dword [esp + 0x10], 0
add eax, 0x69
mov dword [esp + 0xc], 0x404bd5
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [0x4309f8]
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.USER32.dll_DialogBoxParamA
sub esp, 0x14
mov ebx, eax
mov dword [esp], 5
call fcn.004035b6
push esi
mov dword [esp], 1
call fcn.00404390
push ecx
jmp 0x406f60
mov dword [esp], 0
call fcn.004047ba
test eax, eax
push edx
je 0x406f4a
cmp dword [0x431208], 0
jne 0x406f5b
mov dword [esp], 2
call fcn.004035b6
push eax
jmp 0x406f5b
mov dword [esp], 1
call fcn.004035b6
xor ebx, ebx
push esi
jmp 0x406f60
mov ebx, 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret