Function at 0x45b200
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5268e8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2e8]
add esi, 0x380
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebx
jb 0x45b257
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x45b2d1
mov eax, dword [esi + 0x2c]
shr eax, 7
and al, 1
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp byte [ebp - 0x11], bl
je 0x45b2d1
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.004644a0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.0044fae0
mov byte [ebp - 4], 1
mov edx, dword [edi + 0x2e8]
push eax
add edx, 0x380
push edx
call fcn.004cd100
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], bl
call fcn.0044e810
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x45b2d1
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x45b2d1
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
or byte [edi + 0x4f8], 0x80
mov esi, edi
call fcn.00469910
mov eax, dword [ebp + 0xc]
push 1
push eax
push edi
call fcn.0045ca20
mov eax, dword [edi + 0x318]
cmp eax, ebx
mov esi, dword [eax + 0x5c]
je 0x45b2fd
mov edx, dword [eax + 0x64]
jmp 0x45b309
mov edi, dword [edi + 0xa8]
mov edx, dword [edi + 0x90]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0x90]
add edx, esi
cmp edx, ecx
sete byte [ebp - 0x11]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov edx, dword [ebp + 0xc]
push edx
lea esi, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.004d93d0
call fcn.0048b970
mov dword [ebp - 0x34], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
mov edi, ecx
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp ecx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
jbe 0x45b38e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
cmp ecx, eax
mov dword [ebp - 0x28], ecx
jbe 0x45b39b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov byte [ebp - 0x18], bl
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00473d20
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
lea esi, [ebp - 0x38]
add esp, 0x1c
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov ebx, eax
mov edi, edi
test esi, esi
je 0x45b3eb
lea eax, [ebp - 0x38]
cmp esi, eax
je 0x45b3f1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x45b45d
test esi, esi
jne 0x45b3ff
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x45b40a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x45b44d
mov edx, dword [ecx + 0x20]
and byte [ecx + 0x24], 0xfb
mov eax, edx
shl eax, 0x18
sar eax, 0x1c
add eax, 1
cmp eax, 8
jle 0x45b42d
mov eax, 8
shl eax, 4
xor eax, edx
and eax, 0xf0
xor eax, edx
mov dword [ecx + 0x20], eax
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x45b44d
mov edx, dword [ebp + 0xc]
push edx
push ecx
call fcn.004ba800
lea esi, [ebp - 0x2c]
call fcn.0048b420
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
jmp 0x45b3e0
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
cmp esi, eax
mov edi, eax
jbe 0x45b482
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
cmp esi, eax
jbe 0x45b482
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x40]
cmp esi, edi
je 0x45b4a9
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [esi + ecx]
jle 0x45b4a6
push ecx
push edi
push ecx
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x34]
mov edi, dword [eax + 4]
cmp byte [edi + 0x11], 0
mov esi, edi
jne 0x45b4d9
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046fc90
mov esi, dword [esi]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esi + 0x11], 0
mov edi, esi
je 0x45b4b7
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [eax], eax
mov eax, dword [ebp - 0x34]
push ecx
mov dword [eax + 8], eax
call fcn.0045ae00
mov eax, dword [edi + 0xb8]
mov ebx, dword [eax]
lea esi, [edi + 0xb4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
jmp 0x45b519
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
test esi, esi
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 4]
je 0x45b527
cmp esi, eax
je 0x45b52d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
je 0x45b5a1
test esi, esi
jne 0x45b53b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x45b546
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x45b55c
lea eax, [ebx + 4]
mov edx, 1
lock xadd dword [eax], edx
lea esi, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0048b420
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.004ba530
test ebx, ebx
mov byte [ebp - 4], 3
je 0x45b513
lea eax, [ebx + 4]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x45b513
test eax, eax
je 0x45b513
lea ecx, [eax - 4]
test ecx, ecx
je 0x45b513
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
jmp 0x45b513
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x2e8]
mov ecx, dword [eax + 0x1cc]
test ecx, ecx
jle 0x45b5f0
mov eax, dword [edi + 0x318]
cmp dword [eax + 0x70], ecx
jle 0x45b5f0
mov ecx, dword [eax + 0x68]
cmp dword [ebp + 0xc], ecx
mov esi, dword [eax + 0x6c]
jle 0x45b5d9
mov ecx, dword [ebp + 0xc]
push esi
add ecx, 0xffffffff
push ecx
mov ebx, edi
call fcn.0045ad20
lea edx, [esi - 1]
cmp dword [ebp + 0xc], edx
jge 0x45b5f0
mov eax, dword [ebp + 0xc]
push esi
add eax, 1
push eax
mov ebx, edi
call fcn.0045ad20
mov ecx, dword [edi + 0xd4]
mov ebx, dword [ecx]
lea eax, [edi + 0xd0]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
test esi, esi
mov dword [ebp - 0x28], ebx
je 0x45b615
cmp esi, dword [ebp - 0x24]
je 0x45b61b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [ebp - 0x20]
je 0x45b675
test esi, esi
mov byte [ebp - 4], 5
jne 0x45b62e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x45b639
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 8]
push eax
call edx
mov dword [ebp - 4], 3
jmp 0x45b663
cmp ebx, dword [esi + 4]
jne 0x45b66e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
mov edi, dword [ebp + 8]
jmp 0x45b609
mov eax, dword [edi + 0xb8]
lea esi, [edi + 0xb4]
mov edi, dword [eax]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
jmp 0x45b696
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
test esi, esi
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 4]
je 0x45b6a4
cmp esi, eax
je 0x45b6aa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x45b6ee
test esi, esi
jne 0x45b6b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x45b6c3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x2c]
call fcn.0048b420
test byte [ebx + 0x349], 0x20
je 0x45b690
mov eax, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.004ba690
test al, al
je 0x45b690
push ebx
call fcn.004b9280
jmp 0x45b690
cmp byte [ebp - 0x11], 0
mov esi, dword [ebp + 8]
jne 0x45b75d
mov edx, dword [esi + 0xa8]
cmp dword [edx + 0x94], 0
jle 0x45b75d
mov eax, dword [esi + 0x318]
test eax, eax
je 0x45b757
mov cl, byte [esi + 0x4e7]
and cl, 7
cmp cl, 5
je 0x45b757
mov ecx, dword [eax + 0x28]
test ecx, ecx
mov edi, dword [eax + 0x64]
jne 0x45b72c
xor eax, eax
jmp 0x45b734
mov eax, dword [eax + 0x2c]
sub eax, ecx
sar eax, 3
cmp edi, eax
je 0x45b757
cmp dword [edx + 0x94], 0
jle 0x45b75d
mov eax, dword [edx + 0x90]
mov ecx, dword [esi + 0x318]
sub eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x64]
sub eax, edx
jne 0x45b75d
push esi
call fcn.00463670
test byte [esi + 0x52c], 0x80
mov dword [esi + 0x538], 0
je 0x45b776
push esi
call fcn.004670f0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0046d4c0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x45b792
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8