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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x7a439c]
mov dword [esp], 6
call fcn.0040708e
test eax, eax
push edx
je 0x406b3c
call eax
mov dword [esp], 0x7ae000
movzx eax, ax
mov dword [esp + 4], eax
call fcn.00407339
jmp 0x406bc1
mov dword [0x7ae000], 0x7830
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7a1954
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktopResourceLocale
mov dword [esp], 0x80000001
call fcn.0040735d
sub esp, 0x14
cmp byte [0x7a1954], 0
jne 0x406bad
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7a1954
mov dword [esp + 8], 0x40b37a
mov dword [esp + 4], str..DEFAULTControl_PanelInternational
mov dword [esp], 0x80000003
call fcn.0040735d
sub esp, 0x14
mov dword [esp + 4], 0x7a1954
mov dword [esp], 0x7ae000
call fcn.0040727e
push eax
push eax
call fcn.00406a0d
mov eax, dword [0x7a43fc]
mov dword [0x7a4358], 0x10000
mov dword [esp], 0x7ad400
and eax, 0x20
mov dword [0x7a433c], eax
call fcn.00407741
test eax, eax
push ebx
jne 0x406cc3
mov edx, dword [esi + 0x48]
test edx, edx
je 0x406cc3
mov eax, dword [0x7a43c4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7a4cfc
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.0040735d
mov al, byte [0x7a4cfc]
sub esp, 0x14
test al, al
je 0x406cc3
cmp al, 0x22
mov ebx, 0x7a4cfc
jne 0x406c66
mov dword [esp + 4], 0x22
mov ebx, 0x7a4cfd
mov dword [esp], 0x7a4cfd
call fcn.00407114
push ecx
push ecx
mov byte [eax], 0
mov dword [esp], ebx
call fcn.0040728a
lea eax, [ebx + eax - 4]
cmp eax, ebx
push edx
jbe 0x406ca8
mov dword [esp + 4], str..exe
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
push ecx
push ecx
jne 0x406ca8
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push edx
je 0x406c9f
test al, 0x10
jne 0x406ca8
mov dword [esp], ebx
call fcn.00407296
push eax
mov dword [esp], ebx
call fcn.004072ce
push ebx
mov dword [esp + 4], eax
mov dword [esp], 0x7ad400
call fcn.00407312
push ecx
push ecx
mov dword [esp], 0x7ad400
call fcn.00407741
test eax, eax
push edx
jne 0x406cec
mov eax, dword [esi + 0x118]
mov dword [esp], 0x7ad400
mov dword [esp + 4], eax
call fcn.00407403
push ebx
push ebx
mov eax, dword [0x7a444c]
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
sub esp, 0x18
mov dword [0x7a4c9c], eax
cmp dword [esi + 0x50], 0xffffffff
je 0x406e05
mov edx, dword [0x7a444c]
lea esi, [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x7a1930], 0x401000
mov dword [0x7a1940], eax
mov dword [0x7a193c], edx
mov dword [0x7a1950], esi
mov dword [esp], 0x7a192c
call sub.USER32.dll_RegisterClassA
test ax, ax
push ecx
je 0x406f4e
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
mov eax, dword [0x7a444c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x80000000
sub eax, edx
mov dword [esp + 0x18], eax
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 [0x7a2960], eax
mov dword [esp], 0
call fcn.004035b2
test eax, eax
push edx
jne 0x406f49
call fcn.00406a0d
cmp dword [0x7a435c], 0
jne 0x406f0f
mov eax, dword [0x7a2960]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push esi
push esi
mov dword [esp], str.RichEd20
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
push ebx
jne 0x406e61
mov dword [esp], str.RichEd32
call sub.KERNEL32.dll_LoadLibraryA
push ecx
mov dword [esp + 8], 0x7a192c
mov dword [esp + 4], str.RichEdit20A
mov dword [esp], 0
call sub.USER32.dll_GetClassInfoA
sub esp, 0xc
test eax, eax
jne 0x406eba
mov dword [esp + 8], 0x7a192c
mov dword [esp + 4], str.RichEdit
mov dword [esp], 0
call sub.USER32.dll_GetClassInfoA
mov dword [0x7a1950], 0x40b310
sub esp, 0xc
mov dword [esp], 0x7a192c
call sub.USER32.dll_RegisterClassA
push edx
mov eax, dword [0x7a4ccc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404b8c
mov dword [esp + 8], 0
add eax, 0x69
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [0x7a444c]
mov dword [esp], eax
call sub.USER32.dll_DialogBoxParamA
sub esp, 0x14
mov ebx, eax
mov dword [esp], 5
call fcn.004035b2
push eax
mov dword [esp], 1
call fcn.00404364
push esi
jmp 0x406f4e
mov dword [esp], 0
call fcn.00404773
test eax, eax
push ecx
je 0x406f38
cmp dword [0x7a4c5c], 0
jne 0x406f49
mov dword [esp], 2
call fcn.004035b2
push edx
jmp 0x406f49
mov dword [esp], 1
xor ebx, ebx
call fcn.004035b2
push eax
jmp 0x406f4e
mov ebx, 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret