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

Disassembly:
push 0xffffffffffffffff
push 0x59efab
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
xor esi, esi
mov dword [esp + 0x98], esi
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
mov ecx, edi
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 4
je 0x452dba
cmp eax, esi
je 0x452dad
call fcn.004075a0
mov edx, dword [esp + 0xbc]
push edx
call fcn.004f6734
add esp, 4
mov eax, dword [esp + 0xb0]
push eax
jmp 0x45316d
mov ecx, dword [ebp + 4]
mov dword [esp + 0x50], ebp
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xa8]
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov ebx, 1
mov dword [esp + 0x70], ebx
mov eax, dword [eax]
push edx
push ecx
sub eax, 0x10
mov esi, 0x8021
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0xd4]
push eax
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.004c5db0
mov esi, dword [esp + 0xb0]
mov edx, dword [esi + 4]
add esp, 0x10
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0xd4]
imul ecx, ecx, 0x12c
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x6285c4]
mov esi, 3
sub esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
push 0x5e03a0
lea edi, [esp + 0x20]
mov byte [esp + 0xa0], bl
call fcn.00407710
add esp, 8
lea ecx, [esp + 0x50]
push ecx
call fcn.0048dda0
mov ebx, edi
lea edi, [esp + 0x50]
mov byte [esp + 0x98], 2
call fcn.0042d130
mov ebx, dword [esp + 0xa0]
add ebx, 0xc8
call fcn.0042d130
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5e037c
call fcn.004066b0
lea ebx, [esp + 0x1c]
mov byte [esp + 0x98], 3
call fcn.0042d130
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452f0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x5c]
xor edi, edi
sar eax, 2
test eax, eax
jle 0x452f6d
cmp edi, eax
jb 0x452f43
call fcn.004f825e
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + edi*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00409a20
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x5c]
inc edi
sar eax, 2
cmp edi, eax
jl 0x452f3c
mov ebx, dword [esp + 0x1c]
mov esi, dword [0x6610b4]
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x452fb7
mov eax, dword [0x660fcc]
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [0x660fcc]
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [0x660fcc]
push edi
push eax
call esi
cmp dword [0x65e100], 0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jne 0x452ff5
push 0x623830
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x65e100], 1
cmp dword [0x623840], 2
jne 0x453014
cmp dword [0x623834], 5
jne 0x453014
mov eax, 1
cmp dword [0x623838], eax
je 0x453016
xor eax, eax
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0x28]
neg eax
sbb eax, eax
and eax, 6
add eax, 5
lea edi, [edx + eax]
mov eax, dword [esp + 0x2c]
lea esi, [eax + edi]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x34], edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x50
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], eax
jge 0x45305e
mov eax, 0x50
mov dword [esp + 0x30], eax
add ecx, eax
mov dword [esp + 0x38], ecx
add ecx, 0x50
cmp ecx, dword [esp + 0x48]
jle 0x4531a6
mov edx, dword [esp + 0x48]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edi
add edx, 0xffffffb0
mov dword [ecx + 8], edx
sub esp, 0x18
mov dword [ecx + 0xc], esi
mov ecx, esp
mov dword [esp + 0x4c], esp
push ecx
lea ecx, [esp + 0x7c]
call fcn.0042d030
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xc8]
push edx
push eax
push 1
push ecx
mov ecx, ebp
call fcn.0044c940
add ebx, 0xfffffff0
mov byte [esp + 0x98], 2
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4530dd
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x5c]
xor esi, esi
cmp eax, esi
je 0x4530fd
mov edi, dword [esp + 0x60]
call fcn.004075a0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x50]
push edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.004f6734
mov byte [esp + 0x9c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45313e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xbc]
cmp eax, esi
je 0x453165
mov edi, dword [esp + 0xc0]
call fcn.004075a0
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0xb0]
push edx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x38
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], ebp
mov ebp, dword [ebp + 4]
mov eax, dword [ebp + 0x10]
mov ebp, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xac]
push ecx
push edx
push ecx
mov dword [esp + 0x8c], eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x98], 1
mov esi, 0x8021
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x3c]
push eax
mov edx, esi
lea ecx, [esp + 0x80]
call fcn.004c5db0
add esp, 0x10
jmp 0x4530b9