Function at 0x539800
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5f0c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3f0]
mov esi, ecx
cmp dword [esi + 4], 0
mov dword [esp + 0x30], eax
je 0x5399c3
mov ecx, dword [esp + 0x3e0]
mov eax, dword [esi + 0xc]
cmp ecx, eax
mov edx, ecx
jl 0x539864
mov edx, eax
test edx, edx
jge 0x539872
mov dword [esp + 0x14], 0
jmp 0x53987e
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x53987e
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x3e8]
cmp edx, eax
mov ecx, edx
jl 0x53988d
mov ecx, eax
test ecx, ecx
jge 0x539899
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x5398ab
cmp edx, eax
jge 0x5398a5
mov dword [esp + 0x18], edx
mov ebp, edx
jmp 0x5398ab
mov dword [esp + 0x18], eax
mov ebp, eax
mov ecx, dword [esp + 0x3e4]
mov eax, dword [esi + 0x10]
cmp ecx, eax
mov edx, ecx
jl 0x5398bd
mov edx, eax
test edx, edx
jge 0x5398c5
xor ecx, ecx
jmp 0x5398cb
cmp ecx, eax
jl 0x5398cb
mov ecx, eax
mov ebx, eax
sub ebx, ecx
mov ecx, dword [esp + 0x3ec]
cmp ecx, eax
mov dword [esp + 0x20], ebx
mov edx, ecx
jl 0x5398e2
mov edx, eax
test edx, edx
jge 0x5398ea
xor ecx, ecx
jmp 0x5398f0
cmp ecx, eax
jl 0x5398f0
mov ecx, eax
sub eax, ecx
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
mov dword [esp + 0x24], edi
je 0x5399c3
cmp ebx, edi
je 0x5399c3
cmp eax, ebp
jle 0x53991a
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov ebp, eax
cmp ebx, edi
jle 0x53992c
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov ebx, edi
mov edi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x3c]
call fcn.00537a30
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3dc], 0
call fcn.00537b70
mov ecx, dword [esi + 0x40]
movzx edx, word [esi + 0x16]
push ecx
push edx
sub edi, ebx
mov eax, ebp
sub eax, dword [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], eax
call fcn.00538080
lea ecx, [esp + 0x38]
call fcn.00539e30
test al, al
jne 0x5399ef
lea ecx, [esp + 0x38]
call fcn.00539f50
lea edx, [esi + 0x44]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x539990
lea ecx, [esp + 0x38]
mov dword [esp + 0x3d8], 0xffffffff
mov dword [esp + 0x38], vtable.CxImage.0
call fcn.00537b00
lea ecx, [esp + 0x38]
call fcn.00537a50
xor al, al
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.004e8c89
add esp, 0x3c8
ret 0x14
mov eax, dword [esi + 0x28]
push eax
mov ecx, esi
call fcn.0053bb60
push eax
lea ecx, [esp + 0x40]
call fcn.0053c390
mov ecx, dword [esi + 0x14c]
movzx eax, word [esi + 0x16]
mov edx, dword [esi + 0x150]
mov dword [esp + 0x184], ecx
lea ecx, [eax - 1]
cmp ecx, 0x17
mov dword [esp + 0x188], edx
ja case.0x539a35.2
movzx ecx, byte [ecx + 0x539be0]
jmp dword [ecx*4 + 0x539bd4]
cmp ebx, dword [esp + 0x24]
mov ebp, ebx
mov dword [esp + 0x1c], 0
jge case.0x539a35.2
xor eax, eax
mov dword [esp + 0x28], eax
jmp 0x539a5c
mov edi, dword [esp + 0x2c]
cdq
idiv edi
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ebx, ebx
cmp edi, edx
mov dword [esi + 0x144], eax
jge 0x539a98
push ebp
push edi
mov ecx, esi
call fcn.0053bbe0
lea ecx, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.0053bff0
add edi, 1
add ebx, 1
cmp edi, dword [esp + 0x18]
jl 0x539a73
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], 1
add ebp, 1
add eax, 0x64
cmp ebp, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jl 0x539a58
jmp 0x539b20
imul eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x30]
movzx ebp, word [esp + 0x4e]
imul ecx, ebx
imul ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x6c]
sar eax, 3
add eax, ecx
add eax, dword [esi + 0x34]
sar ebp, 3
cmp dword [esp + 0x20], edx
mov ebx, eax
jge 0x539b20
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x2c]
push ebp
push ebx
push edi
mov dword [esi + 0x144], eax
call fcn.004e9c70
add edi, dword [esp + 0x74]
add ebx, dword [esi + 0x30]
add dword [esp + 0x28], 0x64
add esp, 0xc
sub dword [esp + 0x28], 1
jne 0x539af3
mov ebx, dword [esp + 0x20]
mov ecx, esi
call fcn.0053c690
test al, al
je 0x539b8b
lea ecx, [esp + 0x38]
call fcn.0053c6a0
lea ecx, [esp + 0x38]
call fcn.0053c690
test al, al
je 0x53999e
mov edi, dword [esi + 0xc]
mov ebp, dword [esp + 0x3c0]
imul edi, ebx
add edi, dword [esi + 0x388]
add edi, dword [esp + 0x14]
cmp ebx, dword [esp + 0x24]
jge 0x539b8b
mov ebx, dword [esp + 0x2c]
lea ebx, [ebx]
mov ecx, dword [esp + 0x34]
push ecx
push edi
push ebp
call fcn.004e9c70
add ebp, dword [esp + 0x50]
add edi, dword [esi + 0xc]
add esp, 0xc
sub ebx, 1
jne 0x539b70
mov ecx, dword [esp + 0x30]
test ecx, ecx
push 1
je 0x539b9c
lea edx, [esp + 0x3c]
push edx
jmp 0x539ba3
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.00537c80
lea ecx, [esp + 0x38]
mov dword [esp + 0x3d8], 0xffffffff
mov dword [esp + 0x38], vtable.CxImage.0
call fcn.00537b00
lea ecx, [esp + 0x38]
call fcn.00537a50
mov al, 1
jmp 0x5399c5