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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x2c
mov esi, dword [0x7a34b0]
push 6
call fcn.004060e3
add esp, 0xc
test eax, eax
je 0x405c56
call eax
push ebx
movzx eax, ax
push ebx
push eax
push 0x7ad000
call fcn.0040634e
jmp 0x405cb9
sub esp, 0xc
mov dword [0x7ad000], 0x7830
push 0
push 0x7a09e8
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
call fcn.0040636b
add esp, 0xc
cmp byte [0x7a09e8], 0
jne 0x405ca8
sub esp, 0xc
push 0
push 0x7a09e8
push 0x40a382
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.0040636b
add esp, 0xc
push ecx
push ecx
push 0x7a09e8
push 0x7ad000
call fcn.004062b0
pop eax
pop edx
call fcn.00405b48
sub esp, 0xc
mov eax, dword [0x7a3510]
mov dword [0x7a346c], 0x10000
and eax, 0x20
push 0x7ac400
mov dword [0x7a3450], eax
call fcn.00406702
add esp, 0xc
test eax, eax
jne 0x405db3
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x405db3
sub esp, 0xc
mov edx, dword [0x7a34d8]
mov eax, edx
add edx, ecx
push 0
push 0x7a3e10
add eax, dword [esi + 0x4c]
push eax
push edx
push dword [esi + 0x44]
call fcn.0040636b
add esp, 0xc
cmp byte [0x7a3e10], 0
je 0x405db3
mov ebx, 0x7a3e10
cmp byte [0x7a3e10], 0x22
jne 0x405d51
push eax
push eax
push 0x22
push 0x7a3e11
call fcn.00406165
mov ebx, 0x7a3e11
mov byte [eax], 0
pop ecx
pop eax
sub esp, 0xc
push ebx
call fcn.004062b9
add esp, 0xc
lea eax, [ebx + eax - 4]
cmp eax, ebx
jbe 0x405d99
push edx
push edx
push str..exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
pop edx
test eax, eax
pop ecx
jne 0x405d99
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x405d8d
test al, 0x10
jne 0x405d99
sub esp, 0xc
push ebx
call fcn.004062c2
add esp, 0xc
sub esp, 0xc
push ebx
call fcn.004062f7
sub esp, 0xc
push eax
push 0x7ac400
call fcn.00406334
add esp, 0x18
sub esp, 0xc
push 0x7ac400
call fcn.00406702
add esp, 0xc
test eax, eax
jne 0x405ddb
push ecx
push ecx
push dword [esi + 0x118]
push 0x7ac400
call fcn.004063eb
pop eax
pop edx
push ebx
push ebx
push 0x8040
push 0
push 0
push 1
push 0x67
push dword [0x7a3560]
call sub.USER32.dll_LoadImageA
mov dword [0x7a3db0], eax
mov edx, eax
cmp dword [esi + 0x50], 0xffffffff
pop eax
pop ecx
je 0x405e93
sub esp, 0xc
mov eax, dword [0x7a3560]
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x7a09bc], 0x401000
mov dword [0x7a09c8], eax
mov dword [0x7a09cc], edx
mov dword [0x7a09dc], esi
push 0x7a09b8
call sub.USER32.dll_RegisterClassA
xor ebx, ebx
add esp, 0xc
test ax, ax
je 0x405fa3
lea eax, [ebp - 0x1c]
push 0
push eax
push 0
push 0x30
call sub.USER32.dll_SystemParametersInfoA
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push 0
sub eax, edx
push dword [0x7a3560]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push eax
mov eax, dword [ebp - 0x14]
sub eax, ecx
push eax
push edx
push ecx
push 0x80000000
push 0
push esi
push pe_nt_image_headers32
call sub.USER32.dll_CreateWindowExA
mov dword [0x7a1a18], eax
sub esp, 0xc
push 0
call fcn.00403128
add esp, 0xc
test eax, eax
jne 0x405f9e
call fcn.00405b48
cmp dword [0x7a3470], 0
jne 0x405f62
push esi
push esi
push 5
push dword [0x7a1a18]
call sub.USER32.dll_ShowWindow
push ebx
push str.RichEd20
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
test eax, eax
jne 0x405eeb
sub esp, 0xc
push str.RichEd32
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
push ecx
push 0x7a09b8
push str.RichEdit20A
push 0
call sub.USER32.dll_GetClassInfoA
pop edx
test eax, eax
jne 0x405f2d
push eax
push 0x7a09b8
push str.RichEdit
push 0
call sub.USER32.dll_GetClassInfoA
mov dword [0x7a09dc], 0x40a318
push eax
push eax
push 0x7a09b8
call sub.USER32.dll_RegisterClassA
add esp, 0xc
mov eax, dword [0x7a3de0]
sub esp, 0xc
add eax, 0x69
movzx eax, ax
push 0
push 0x4055bf
push 0
push eax
push dword [0x7a3560]
call sub.USER32.dll_DialogBoxParamA
mov ebx, eax
push 5
call fcn.00403128
push 1
call fcn.00403ca0
jmp 0x405f8b
sub esp, 0xc
push 0
call fcn.00404055
add esp, 0xc
test eax, eax
je 0x405f90
cmp dword [0x7a3d70], 0
jne 0x405f9e
sub esp, 0xc
mov ebx, 2
push 2
call fcn.00403128
add esp, 0xc
jmp 0x405fa3
sub esp, 0xc
xor ebx, ebx
push 1
call fcn.00403128
jmp 0x405f8b
mov ebx, 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret