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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x2c
mov esi, dword [0x424ca8]
push 6
call fcn.0040628e
add esp, 0xc
test eax, eax
je 0x405e06
call eax
push ebx
push ebx
movzx eax, ax
push eax
push 0x42e000
call fcn.00406517
jmp 0x405e69
sub esp, 0xc
push 0
push 0x4221e8
push 0
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x42e000], 0x7830
call fcn.00406534
add esp, 0xc
cmp byte [0x4221e8], 0
jne 0x405e58
sub esp, 0xc
push 0
push 0x4221e8
push 0x40a3d2
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00406534
add esp, 0xc
push ecx
push ecx
push 0x4221e8
push 0x42e000
call fcn.00406479
pop eax
pop edx
call fcn.00405cf7
mov eax, dword [0x424d08]
sub esp, 0xc
push 0x42d400
mov dword [0x424c64], 0x10000
and eax, 0x20
mov dword [0x424c48], eax
call fcn.004068dc
add esp, 0xc
test eax, eax
jne 0x405f5f
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x405f5f
mov edx, dword [0x424cd0]
sub esp, 0xc
push 0
push 0x425608
mov eax, edx
add eax, dword [esi + 0x4c]
lea edx, [ecx + edx]
push eax
push edx
push dword [esi + 0x44]
call fcn.00406534
mov al, byte [0x425608]
add esp, 0xc
test al, al
je 0x405f5f
cmp al, 0x22
mov ebx, 0x425608
jne 0x405efd
push eax
mov ebx, 0x425609
push eax
push 0x22
push 0x425609
call fcn.00406310
mov byte [eax], 0
pop ecx
pop eax
sub esp, 0xc
push ebx
call fcn.00406482
lea eax, [ebx + eax - 4]
add esp, 0xc
cmp eax, ebx
jbe 0x405f45
push edx
push edx
push str..exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
pop edx
pop ecx
test eax, eax
jne 0x405f45
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x405f39
test al, 0x10
jne 0x405f45
sub esp, 0xc
push ebx
call fcn.0040648b
add esp, 0xc
sub esp, 0xc
push ebx
call fcn.004064c0
sub esp, 0xc
push eax
push 0x42d400
call fcn.004064fd
add esp, 0x18
sub esp, 0xc
push 0x42d400
call fcn.004068dc
add esp, 0xc
test eax, eax
jne 0x405f87
push ecx
push ecx
push dword [esi + 0x118]
push 0x42d400
call fcn.004065b4
pop eax
pop edx
push ebx
push ebx
push 0x8040
push 0
push 0
push 1
push 0x67
push dword [0x424d58]
call sub.USER32.dll_LoadImageA
mov dword [0x4255a8], eax
mov edx, eax
cmp dword [esi + 0x50], 0xffffffff
pop eax
pop ecx
je 0x40603f
mov eax, dword [0x424d58]
sub esp, 0xc
xor ebx, ebx
lea esi, [ebp - 0xc]
push 0x4221b8
mov dword [ebp - 0xc], 0x624e5f
mov dword [0x4221bc], 0x401000
mov dword [0x4221c8], eax
mov dword [0x4221cc], edx
mov dword [0x4221dc], esi
call sub.USER32.dll_RegisterClassA
add esp, 0xc
test ax, ax
je 0x40614f
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x30
call sub.USER32.dll_SystemParametersInfoA
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
sub eax, edx
push 0
push dword [0x424d58]
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 [0x423218], eax
sub esp, 0xc
push 0
call fcn.004030d7
add esp, 0xc
test eax, eax
jne 0x40614a
call fcn.00405cf7
cmp dword [0x424c68], 0
jne 0x40610e
push esi
push esi
push 5
push dword [0x423218]
call sub.USER32.dll_ShowWindow
push ebx
push str.RichEd20
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
test eax, eax
jne 0x406097
sub esp, 0xc
push str.RichEd32
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
push ecx
push 0x4221b8
push str.RichEdit20A
push 0
call sub.USER32.dll_GetClassInfoA
pop edx
test eax, eax
jne 0x4060d9
push eax
push 0x4221b8
push str.RichEdit
push 0
call sub.USER32.dll_GetClassInfoA
mov dword [0x4221dc], 0x40a368
push eax
push eax
push 0x4221b8
call sub.USER32.dll_RegisterClassA
add esp, 0xc
mov eax, dword [0x4255d8]
sub esp, 0xc
push 0
push 0x4044b9
push 0
add eax, 0x69
movzx eax, ax
push eax
push dword [0x424d58]
call sub.USER32.dll_DialogBoxParamA
push 5
mov ebx, eax
call fcn.004030d7
push 1
call fcn.00403e08
jmp 0x406137
sub esp, 0xc
push 0
call fcn.00404100
add esp, 0xc
test eax, eax
je 0x40613c
cmp dword [0x425568], 0
jne 0x40614a
sub esp, 0xc
mov ebx, 2
push 2
call fcn.004030d7
add esp, 0xc
jmp 0x40614f
sub esp, 0xc
xor ebx, ebx
push 1
call fcn.004030d7
jmp 0x406137
mov ebx, 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret