Function at 0x405e20
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x30], ebx
mov edx, dword [ebx + 4]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x74]
xor esi, esi
push ecx
push esi
push 0x104b
push edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], 4
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x94]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x44], eax
je 0x4066de
test byte [esp + 0xd8], 1
je 0x40605d
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
call fcn.00401410
mov edx, dword [eax + 0x10]
add eax, 0x10
lea ecx, [esp + 0x5c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xac]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], esi
push esi
mov byte [esp + 0xa8], 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
sub ecx, edi
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004091f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
neg eax
neg ecx
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov eax, dword [esp + 0x10]
mov byte [esp + 0xa4], 3
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
call fcn.00401410
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [esp + 0x34]
sub ebp, ecx
mov edx, dword [esp + 0x54]
push 0xcc0020
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x54]
push ebp
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 0xcc0020
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
mov byte [esp + 0xb4], 4
sub edx, ecx
push edx
push 0
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40604c
lea ecx, [esp + 0x28]
call fcn.004014a0
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x10]
jmp 0x4063ba
mov ecx, dword [eax + 0x60]
mov eax, dword [esp + 0xc4]
cmp ecx, esi
je 0x406213
mov ecx, dword [esp + 0xc8]
mov ebp, dword [esp + 0xcc]
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call fcn.00401410
add eax, 0x18
lea edx, [esp + 0x5c]
push edx
push 0x18
mov eax, dword [eax]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xac]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
push esi
mov byte [esp + 0xa8], 6
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
sub ecx, edi
sub edx, eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.004091f0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push 0
neg eax
neg ecx
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xa4], 7
push ecx
call dword [sym.imp.GDI32.dll_SaveDC]
call fcn.00401410
mov eax, dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push eax
push edx
call edi
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub ebx, ecx
push 0xcc0020
sub ebp, eax
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
push ebx
push ebp
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 0xcc0020
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
mov byte [esp + 0xb4], 8
sub edx, ecx
push edx
push 0
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4061f9
lea ecx, [esp + 0x28]
call fcn.004014a0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.004091b0
mov ebx, dword [esp + 0x30]
jmp 0x4063bf
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
call fcn.00401410
mov edx, dword [eax + 0x14]
add eax, 0x14
lea ecx, [esp + 0x5c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
xor edx, edx
xor edi, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xac]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], esi
push esi
mov byte [esp + 0xa8], 0xa
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
sub ecx, edi
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.004091f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
neg eax
neg ecx
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov eax, dword [esp + 0x10]
mov byte [esp + 0xa4], 0xb
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
call fcn.00401410
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
sub eax, edx
sub ebp, ecx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x54]
push 0xcc0020
push ebp
mov ebp, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x1c]
push 0
push 0
push ebp
push eax
mov eax, dword [esp + 0x4c]
push eax
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push 0xcc0020
push ecx
push eax
push edx
mov edx, dword [esp + 0x34]
mov byte [esp + 0xb4], 0xc
sub edx, ecx
push edx
push 0
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4063ae
lea ecx, [esp + 0x28]
call fcn.004014a0
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x10]
call fcn.004091b0
mov ebp, dword [esp + 0x44]
mov ecx, dword [ebx + 0x24]
push 0
push 0
mov eax, dword [ebp + 0x48]
push 0x1200
push ecx
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], 0
jle 0x4066de
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0xc4]
mov dword [esp + 0xc8], edx
mov edx, dword [ebx + 4]
push eax
push ecx
push 0x1038
push edx
mov dword [esp + 0xd4], 0
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00401410
mov eax, dword [eax + 8]
push eax
push esi
call edi
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x406495
push eax
push eax
mov eax, dword [ebx + 4]
push 0x101d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0xc4]
push edx
add eax, ecx
sub esp, 0x10
mov dword [esp + 0xe0], eax
mov edx, esp
push esi
push ebp
mov dword [edx], ecx
mov ecx, dword [esp + 0xe4]
mov dword [edx + 4], ecx
mov ecx, ebx
mov dword [edx + 8], eax
mov eax, dword [esp + 0xec]
mov dword [edx + 0xc], eax
call fcn.00406700
jmp 0x4066c9
cmp eax, 1
jne 0x4064d4
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00406e70
jmp 0x4066c9
cmp eax, 7
jne 0x406513
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00408390
jmp 0x4066c9
cmp eax, 2
jne 0x406552
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00406f40
jmp 0x4066c9
cmp eax, 3
jne 0x406591
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00407110
jmp 0x4066c9
cmp eax, 4
jne 0x4065d0
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00407160
jmp 0x4066c9
cmp eax, 5
jne 0x40660f
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.004071b0
jmp 0x4066c9
cmp eax, 6
jne 0x40664b
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00407200
jmp 0x4066c9
cmp eax, 8
jne 0x406687
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call fcn.00407250
jmp 0x4066c9
cmp eax, 9
jne 0x4066c9
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
sub esp, 0x10
mov ecx, esp
push esi
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xc8]
push ecx
mov ecx, ebx
call fcn.004072a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4063f1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret 0x38