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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x2c
mov esi, dword [0x42f948]
push 6
call fcn.004060cb
add esp, 0xc
test eax, eax
je 0x405c42
call eax
push ebx
push ebx
movzx eax, ax
push eax
push 0x439000
call fcn.00406336
jmp 0x405ca5
mov dword [0x439000], 0x7830
sub esp, 0xc
push 0
push 0x42bcd8
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
call fcn.00406353
add esp, 0xc
cmp byte [0x42bcd8], 0
jne 0x405c94
sub esp, 0xc
push 0
push 0x42bcd8
push 0x40a37a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00406353
add esp, 0xc
push ecx
push ecx
push 0x42bcd8
push 0x439000
call fcn.00406298
pop eax
pop edx
call fcn.00405b34
mov eax, dword [0x42f9a8]
and eax, 0x20
mov dword [0x42f8e8], eax
mov dword [0x42f904], 0x10000
sub esp, 0xc
push 0x438400
call fcn.004066ea
add esp, 0xc
test eax, eax
jne 0x405d9f
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x405d9f
mov edx, dword [0x42f970]
sub esp, 0xc
push 0
push 0x4302a8
mov eax, edx
add eax, dword [esi + 0x4c]
push eax
add edx, ecx
push edx
push dword [esi + 0x44]
call fcn.00406353
add esp, 0xc
cmp byte [0x4302a8], 0
je 0x405d9f
mov ebx, 0x4302a8
cmp byte [0x4302a8], 0x22
jne 0x405d3d
push eax
push eax
push 0x22
push 0x4302a9
call fcn.0040614d
mov byte [eax], 0
mov ebx, 0x4302a9
pop ecx
pop eax
sub esp, 0xc
push ebx
call fcn.004062a1
lea eax, [ebx + eax - 4]
add esp, 0xc
cmp eax, ebx
jbe 0x405d85
push edx
push edx
push str..exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
pop edx
pop ecx
test eax, eax
jne 0x405d85
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x405d79
test al, 0x10
jne 0x405d85
sub esp, 0xc
push ebx
call fcn.004062aa
add esp, 0xc
sub esp, 0xc
push ebx
call fcn.004062df
sub esp, 0xc
push eax
push 0x438400
call fcn.0040631c
add esp, 0x18
sub esp, 0xc
push 0x438400
call fcn.004066ea
add esp, 0xc
test eax, eax
jne 0x405dc7
push ecx
push ecx
push dword [esi + 0x118]
push 0x438400
call fcn.004063d3
pop eax
pop edx
push ebx
push ebx
push 0x8040
push 0
push 0
push 1
push 0x67
push dword [0x42f9f8]
call sub.USER32.dll_LoadImageA
mov edx, eax
mov dword [0x430248], eax
pop eax
pop ecx
cmp dword [esi + 0x50], 0xffffffff
je 0x405e7f
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x42bcac], 0x401000
mov eax, dword [0x42f9f8]
mov dword [0x42bcb8], eax
mov dword [0x42bcbc], edx
lea esi, [ebp - 0xc]
mov dword [0x42bccc], esi
sub esp, 0xc
push 0x42bca8
call sub.USER32.dll_RegisterClassA
add esp, 0xc
xor ebx, ebx
test ax, ax
je 0x405f8f
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x30
call sub.USER32.dll_SystemParametersInfoA
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push 0
push dword [0x42f9f8]
push 0
push 0
mov eax, dword [ebp - 0x10]
sub eax, edx
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 [0x42cd08], eax
sub esp, 0xc
push 0
call fcn.00403103
add esp, 0xc
test eax, eax
jne 0x405f8a
call fcn.00405b34
cmp dword [0x42f908], 0
jne 0x405f4e
push esi
push esi
push 5
push dword [0x42cd08]
call sub.USER32.dll_ShowWindow
push ebx
push str.RichEd20
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
test eax, eax
jne 0x405ed7
sub esp, 0xc
push str.RichEd32
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
push ecx
push 0x42bca8
push str.RichEdit20A
push 0
call sub.USER32.dll_GetClassInfoA
pop edx
test eax, eax
jne 0x405f19
push eax
push 0x42bca8
push str.RichEdit
push 0
call sub.USER32.dll_GetClassInfoA
mov dword [0x42bccc], 0x40a310
push eax
push eax
push 0x42bca8
call sub.USER32.dll_RegisterClassA
add esp, 0xc
sub esp, 0xc
push 0
push 0x4055ab
push 0
mov eax, dword [0x430278]
add eax, 0x69
movzx eax, ax
push eax
push dword [0x42f9f8]
call sub.USER32.dll_DialogBoxParamA
mov ebx, eax
push 5
call fcn.00403103
push 1
call fcn.00403c90
jmp 0x405f77
sub esp, 0xc
push 0
call fcn.00404041
add esp, 0xc
test eax, eax
je 0x405f7c
cmp dword [0x430208], 0
jne 0x405f8a
sub esp, 0xc
push 2
call fcn.00403103
mov ebx, 2
add esp, 0xc
jmp 0x405f8f
sub esp, 0xc
push 1
call fcn.00403103
xor ebx, ebx
jmp 0x405f77
mov ebx, 2
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret