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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x7a6374]
mov dword [esp], 6
call fcn.00407ccf
test eax, eax
push ecx
je 0x405cae
call eax
mov dword [esp], 0x7b0000
movzx eax, ax
mov dword [esp + 4], eax
call fcn.00407729
jmp 0x405d33
mov dword [0x7b0000], 0x7830
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7a291c
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktopResourceLocale
mov dword [esp], 0x80000001
call fcn.00407680
sub esp, 0x14
cmp byte [0x7a291c], 0
jne 0x405d1f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7a291c
mov dword [esp + 8], 0x40b30e
mov dword [esp + 4], str..DEFAULTControl_PanelInternational
mov dword [esp], 0x80000003
call fcn.00407680
sub esp, 0x14
mov dword [esp + 4], 0x7a291c
mov dword [esp], 0x7b0000
call fcn.00407820
push ebx
push ebx
call fcn.00404ad8
mov eax, dword [0x7a63bc]
mov dword [0x7a6350], 0x10000
mov dword [esp], 0x7af400
and eax, 0x20
mov dword [0x7a6334], eax
call fcn.00407c18
test eax, eax
push edx
jne 0x405e36
mov edx, dword [esi + 0x48]
test edx, edx
je 0x405e36
mov eax, dword [0x7a6390]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x7a6bfc
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.00407680
mov al, byte [0x7a6bfc]
sub esp, 0x14
test al, al
je 0x405e36
cmp al, 0x22
mov ebx, 0x7a6bfc
jne 0x405dd7
mov dword [esp + 4], 0x22
mov ebx, 0x7a6bfd
mov dword [esp], 0x7a6bfd
call fcn.004073cc
push ecx
push ecx
mov byte [eax], 0
mov dword [esp], ebx
call fcn.00407815
lea eax, [ebx + eax - 4]
cmp eax, ebx
push edx
jbe 0x405e1b
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 0x405e1b
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x405e12
test al, 0x10
jne 0x405e1b
mov dword [esp], ebx
call fcn.004073fc
push eax
mov dword [esp], ebx
call fcn.00407386
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0x7af400
call fcn.004077ed
push ebx
push ebx
mov dword [esp], 0x7af400
call fcn.00407c18
test eax, eax
push edx
jne 0x405e5f
mov eax, dword [esi + 0x118]
mov dword [esp], 0x7af400
mov dword [esp + 4], eax
call fcn.004078ff
push eax
push eax
mov eax, dword [0x7a63d0]
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 [0x7a6be4], eax
je 0x405f7c
mov edx, dword [0x7a63d0]
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x7a3920], 0x401000
mov dword [0x7a3930], eax
mov dword [0x7a392c], edx
mov dword [0x7a3940], esi
mov dword [esp], 0x7a391c
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
xor ebx, ebx
test ax, ax
je 0x4060c5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x7a63d0]
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 dword [sym.imp.USER32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [0x7a3944], eax
mov dword [esp], 0
mov ebx, 2
call fcn.004038a0
test eax, eax
push ecx
jne 0x4060c5
call fcn.00404ad8
cmp dword [0x7a6354], 0
jne 0x40608d
mov eax, dword [0x7a3944]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
push eax
mov dword [esp], str.RichEd20
call ebx
test eax, eax
push edx
jne 0x405fde
mov dword [esp], str.RichEd32
call ebx
push esi
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoA]
mov dword [esp + 8], 0x7a391c
mov dword [esp + 4], str.RichEdit20A
mov dword [esp], 0
call ebx
sub esp, 0xc
test eax, eax
jne 0x406038
mov dword [esp + 8], 0x7a391c
mov dword [esp + 4], str.RichEdit
mov dword [esp], 0
call ebx
mov dword [0x7a3940], 0x40b358
sub esp, 0xc
mov dword [esp], 0x7a391c
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
mov eax, dword [0x7a6bf0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404d46
mov dword [esp + 8], 0
add eax, 0x69
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [0x7a63d0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
sub esp, 0x14
mov ebx, eax
mov dword [esp], 5
call fcn.004038a0
push ecx
mov dword [esp], 1
call fcn.00404680
jmp 0x4060b3
mov dword [esp], 0
call fcn.0040492a
test eax, eax
push edx
je 0x4060b6
cmp dword [0x7a6bd4], 0
jne 0x4060c5
mov dword [esp], 2
call fcn.004038a0
push esi
jmp 0x4060c5
mov dword [esp], 1
call fcn.004038a0
push ebx
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret