Function at 0x4521e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x59eff8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebx, ecx
xor ebp, ebp
mov dword [esp + 0x84], ebp
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
mov ecx, edi
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0xc
je 0x452251
cmp eax, ebp
je 0x452244
call fcn.004075a0
mov edx, dword [esp + 0x9c]
push edx
call fcn.004f6734
add esp, 4
mov eax, dword [esp + 0x90]
push eax
jmp 0x4527a7
mov edi, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45226e
lea ecx, [esp + 0x20]
push ecx
push edi
or ecx, 0xffffffff
mov eax, ebx
call fcn.00446f40
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
add eax, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0xa0]
sub edx, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x58], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
sar edx, 2
push 0x1c1c1c
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 1
push ebx
mov edi, 0x8020
test edx, edx
ja 0x4522f6
call fcn.004f825e
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov dword [esp + 0x20], esp
call fcn.004073f0
mov ecx, esp
add eax, 0x10
lea edx, [esp + 0x44]
mov dword [ecx], eax
push edx
mov edx, edi
lea ecx, [esp + 0x68]
call fcn.004c5f0c
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov edi, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb0]
sub eax, dword [esp + 0xac]
add esp, 0x10
sar eax, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edx
cmp eax, 2
ja 0x452371
call fcn.004f825e
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx + 8]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45239e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
or ecx, 0xffffffff
mov eax, ebx
call fcn.00446f40
mov eax, dword [esi + 4]
sub edi, dword [esp + 0x20]
mov dword [esp + 0x58], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x9c]
push 0x1c1c1c
sar ecx, 2
mov dword [esp + 0x2c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 1
push ebx
cmp ecx, 2
ja 0x4523f4
call fcn.004f825e
mov edx, dword [esp + 0xa4]
mov eax, dword [edx + 8]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x34]
push eax
mov edx, 0x8020
lea ecx, [esp + 0x68]
call fcn.004c5f0c
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x68], esi
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xb0]
sub ecx, dword [esp + 0xac]
add esp, 0x10
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x40]
sar ecx, 2
push 0x9900
mov dword [esp + 0x4c], edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], 1
push ebx
mov edi, 0x8020
cmp ecx, 1
ja 0x4524b7
call fcn.004f825e
mov edx, dword [esp + 0xa4]
mov eax, dword [edx + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.004073f0
add eax, 0x10
mov dword [ebx], eax
lea eax, [esp + 0x54]
push eax
mov edx, edi
lea ecx, [esp + 0x68]
call fcn.004c5db0
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 4]
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x58]
push ecx
call fcn.0048dda0
lea edx, [esp + 0x14]
push edx
mov ecx, 0x5e0370
mov byte [esp + 0x88], 1
call fcn.004066b0
lea ebx, [esp + 0x14]
lea edi, [esp + 0x58]
mov byte [esp + 0x84], 2
call fcn.0042d130
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45255c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x8c]
add ebx, 0xc8
lea edi, [esp + 0x58]
call fcn.0042d130
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x5e037c
call fcn.004066b0
lea ebx, [esp + 0x14]
mov byte [esp + 0x84], 3
call fcn.0042d130
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4525ba
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
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
add eax, 0xc8
mov byte [esp + 0x84], 4
mov ecx, dword [eax]
push ecx
push str.ck_Wb__rY
lea edi, [esp + 0x1c]
call fcn.00407710
mov edi, dword [0x66109c]
mov ebx, dword [esp + 0x1c]
add esp, 8
push ebx
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x452622
lea edx, [esp + 0x28]
push edx
push ebx
or ecx, 0xffffffff
mov eax, edi
call fcn.00446f40
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
cmp dword [0x65e100], ebp
jne 0x45265f
push 0x623830
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x65e100], 1
cmp dword [0x623840], 2
jne 0x45267e
cmp dword [0x623834], 5
jne 0x45267e
mov eax, 1
cmp dword [0x623838], eax
je 0x452680
xor eax, eax
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x2c]
neg eax
sbb eax, eax
and eax, 6
add eax, 5
lea edi, [ecx + eax]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
add edx, edi
sub eax, ecx
mov dword [esp + 0x54], edx
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x64
jge 0x4526bb
mov eax, 0x64
lea edx, [eax + ecx]
lea ecx, [edx + 0x64]
xor ebx, ebx
cmp ecx, dword [esp + 0x40]
jle 0x4526d5
mov edx, dword [esp + 0x40]
mov ebx, 1
add edx, 0xffffff9c
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x64]
sub esp, 0x18
mov eax, esp
mov dword [ecx + 0xc], edx
mov dword [esp + 0x44], esp
push eax
lea ecx, [esp + 0x84]
call fcn.0042d030
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0xb4]
push 0x6b6b6b
push ecx
push ebx
push edx
mov ecx, esi
call fcn.0044c940
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452741
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x64]
cmp eax, ebp
je 0x45275f
mov edi, dword [esp + 0x68]
call fcn.004075a0
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004f6734
add esp, 4
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
call fcn.004f6734
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, ebp
je 0x45279f
mov edi, dword [esp + 0xa0]
call fcn.004075a0
mov eax, dword [esp + 0x9c]
push eax
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x90]
push ecx
mov dword [esp + 0xa0], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], ebp
call fcn.004f6734
add esp, 4
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x78
ret 0x2c