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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x425b48]
mov dword [esp], 6
call fcn.00407d7e
push ecx
test eax, eax
je 0x405dc3
call eax
movzx eax, ax
mov dword [esp + 4], eax
mov dword [esp], 0x42f000
call fcn.004077fc
jmp 0x405e48
mov dword [0x42f000], 0x7830
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4220f0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktopResourceLocale
mov dword [esp], 0x80000001
call fcn.00407756
sub esp, 0x14
cmp byte [0x4220f0], 0
jne 0x405e34
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4220f0
mov dword [esp + 8], 0x40b366
mov dword [esp + 4], str..DEFAULTControl_PanelInternational
mov dword [esp], 0x80000003
call fcn.00407756
sub esp, 0x14
mov dword [esp + 4], 0x4220f0
mov dword [esp], 0x42f000
call fcn.004078ef
push ebx
push ebx
call fcn.00404c27
mov eax, dword [0x425b90]
and eax, 0x20
mov dword [0x425b08], eax
mov dword [0x425b24], 0x10000
mov dword [esp], 0x42e400
call fcn.00407cce
push edx
test eax, eax
jne 0x405f49
mov edx, dword [esi + 0x48]
test edx, edx
je 0x405f49
mov eax, dword [0x425b64]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4263d0
mov ecx, dword [esi + 0x4c]
add ecx, eax
mov dword [esp + 8], ecx
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call fcn.00407756
sub esp, 0x14
mov al, byte [0x4263d0]
test al, al
je 0x405f49
mov ebx, 0x4263d0
cmp al, 0x22
jne 0x405eec
mov dword [esp + 4], 0x22
mov dword [esp], 0x4263d1
call fcn.004074c7
push ecx
push ecx
mov byte [eax], 0
mov ebx, 0x4263d1
mov dword [esp], ebx
call fcn.004078e6
push edx
lea eax, [ebx + eax - 4]
cmp eax, ebx
jbe 0x405f2e
mov dword [esp + 4], str..exe
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpiA
push ecx
push ecx
test eax, eax
jne 0x405f2e
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
push edx
cmp eax, 0xffffffff
je 0x405f25
test al, 0x10
jne 0x405f2e
mov dword [esp], ebx
call fcn.004074f0
push eax
mov dword [esp], ebx
call fcn.00407484
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0x42e400
call fcn.004078bf
push ebx
push ebx
mov dword [esp], 0x42e400
call fcn.00407cce
push edx
test eax, eax
jne 0x405f72
mov eax, dword [esi + 0x118]
mov dword [esp + 4], eax
mov dword [esp], 0x42e400
call fcn.004079bf
push eax
push eax
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 eax, dword [0x425ba4]
mov dword [esp], eax
call sub.USER32.dll_LoadImageA
sub esp, 0x18
mov dword [0x4263b8], eax
cmp dword [esi + 0x50], 0xffffffff
je 0x40608b
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x4230f4], 0x401000
mov edx, dword [0x425ba4]
mov dword [0x423100], edx
mov dword [0x423104], eax
lea esi, [ebp - 0xc]
mov dword [0x423114], esi
mov dword [esp], 0x4230f0
call sub.USER32.dll_RegisterClassA
push ebx
xor ebx, ebx
test ax, ax
je 0x4061d1
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x30
call sub.USER32.dll_SystemParametersInfoA
sub esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x2c], 0
mov eax, dword [0x425ba4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14]
sub eax, edx
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 [0x423118], eax
mov dword [esp], 0
call fcn.00403823
push ecx
mov ebx, 2
test eax, eax
jne 0x4061d1
call fcn.00404c27
cmp dword [0x425b28], 0
jne 0x406199
mov dword [esp + 4], 5
mov eax, dword [0x423118]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push eax
push eax
mov dword [esp], str.RichEd20
call sub.KERNEL32.dll_LoadLibraryA
push edx
test eax, eax
jne 0x4060ec
mov dword [esp], str.RichEd32
call sub.KERNEL32.dll_LoadLibraryA
push esi
mov dword [esp + 8], 0x4230f0
mov dword [esp + 4], str.RichEdit20A
mov dword [esp], 0
call sub.USER32.dll_GetClassInfoA
sub esp, 0xc
test eax, eax
jne 0x406145
mov dword [esp + 8], 0x4230f0
mov dword [esp + 4], str.RichEdit
mov dword [esp], 0
call sub.USER32.dll_GetClassInfoA
sub esp, 0xc
mov dword [0x423114], 0x40b3b0
mov dword [esp], 0x4230f0
call sub.USER32.dll_RegisterClassA
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404e88
mov dword [esp + 8], 0
mov eax, dword [0x4263c4]
add eax, 0x69
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [0x425ba4]
mov dword [esp], eax
call sub.USER32.dll_DialogBoxParamA
sub esp, 0x14
mov ebx, eax
mov dword [esp], 5
call fcn.00403823
push ecx
mov dword [esp], 1
call fcn.004047e4
jmp 0x4061bf
mov dword [esp], 0
call fcn.00404a7c
push edx
test eax, eax
je 0x4061c2
cmp dword [0x4263a8], 0
jne 0x4061d1
mov dword [esp], 2
call fcn.00403823
push esi
jmp 0x4061d1
mov dword [esp], 1
call fcn.00403823
push ecx
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret