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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov esi, dword [0x435a80]
mov dword [esp], 6
call fcn.00407e2f
test eax, eax
push ecx
je 0x405e31
call eax
movzx eax, ax
mov dword [esp], 0x43f000
mov dword [esp + 4], eax
call fcn.004077ff
jmp 0x405eb6
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x431e40
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelDesktopResourceLocale
mov dword [esp], 0x80000001
mov dword [0x43f000], 0x7830
call fcn.00407756
sub esp, 0x14
cmp byte [0x431e40], 0
jne 0x405ea2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x431e40
mov dword [esp + 8], 0x40b37a
mov dword [esp + 4], str..DEFAULTControl_PanelInternational
mov dword [esp], 0x80000003
call fcn.00407756
sub esp, 0x14
mov dword [esp + 4], 0x431e40
mov dword [esp], 0x43f000
call fcn.00407905
push ebx
push ebx
call fcn.0040480c
mov eax, dword [0x435b04]
mov dword [esp], 0x43e400
mov dword [0x435a54], 0x10000
and eax, 0x20
mov dword [0x435a38], eax
call fcn.00407d7c
test eax, eax
push edx
jne 0x405fb9
mov edx, dword [esi + 0x48]
test edx, edx
je 0x405fb9
mov eax, dword [0x435ad8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4363c0
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.00407756
mov al, byte [0x4363c0]
sub esp, 0x14
test al, al
je 0x405fb9
cmp al, 0x22
mov ebx, 0x4363c0
jne 0x405f5a
mov dword [esp + 4], 0x22
mov dword [esp], 0x4363c1
mov ebx, 0x4363c1
call fcn.004074c0
push ecx
push ecx
mov byte [eax], 0
mov dword [esp], ebx
call fcn.004078fa
lea eax, [ebx + eax - 4]
push edx
cmp eax, ebx
jbe 0x405f9e
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 0x405f9e
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x405f95
test al, 0x10
jne 0x405f9e
mov dword [esp], ebx
call fcn.004074ea
push eax
mov dword [esp], ebx
call fcn.00407910
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0x43e400
call fcn.004078d2
push ebx
push ebx
mov dword [esp], 0x43e400
call fcn.00407d7c
test eax, eax
push edx
jne 0x405fe2
mov eax, dword [esi + 0x118]
mov dword [esp], 0x43e400
mov dword [esp + 4], eax
call fcn.00407a22
push eax
push eax
mov eax, dword [0x435b48]
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 [0x436390], eax
je 0x406100
mov edx, dword [0x435b48]
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x624e5f
mov dword [0x431dc4], 0x401000
mov dword [0x431dd4], eax
mov dword [0x431de4], ebx
mov dword [esp], 0x431dc0
mov dword [0x431dd0], edx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
push esi
jne 0x40606f
xor ebx, ebx
jmp 0x406249
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], 0x30
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x435b48]
sub esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x80000000
mov dword [esp + 8], 0
sub eax, ecx
mov dword [esp + 4], ebx
mov dword [esp], pe_nt_image_headers32
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [0x431dfc], eax
mov dword [esp], 0
call fcn.004038ff
test eax, eax
push ecx
mov ebx, eax
jne 0x406235
call fcn.0040480c
cmp dword [0x435a58], 0
jne 0x40620e
mov eax, dword [0x431dfc]
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], str.RichEd20
call ebx
test eax, eax
push edx
jne 0x40615f
mov dword [esp], str.RichEd32
call ebx
push eax
mov dword [esp + 8], 0x431dc0
mov dword [esp + 4], str.RichEdit20A
mov dword [esp], 0
mov ebx, dword [sym.imp.USER32.dll_GetClassInfoA]
call ebx
sub esp, 0xc
test eax, eax
jne 0x4061b9
mov dword [esp + 8], 0x431dc0
mov dword [esp + 4], str.RichEdit
mov dword [esp], 0
call ebx
sub esp, 0xc
mov dword [0x431de4], 0x40b310
mov dword [esp], 0x431dc0
call dword [sym.imp.USER32.dll_RegisterClassA]
push eax
mov eax, dword [0x43639c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404d10
mov dword [esp + 8], 0
add eax, 0x69
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [0x435b48]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
sub esp, 0x14
mov ebx, eax
mov dword [esp], 5
call fcn.004038ff
push esi
mov dword [esp], 1
call fcn.004046e4
jmp 0x406248
mov dword [esp], 0
call fcn.00404939
test eax, eax
push ecx
je 0x40623c
cmp dword [0x436380], 0
jne 0x406235
mov dword [esp], 2
call fcn.004038ff
push edx
mov ebx, 2
jmp 0x406249
mov dword [esp], 1
call fcn.004038ff
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret