Function at 0x481c90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5195ee
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0xd4], ebx
call fcn.004916c6
mov esi, dword [esp + 0xdc]
push ebx
push 0x1001
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xe0], 1
call fcn.00491c12
test eax, eax
jne 0x481dad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push 3
lea eax, [esp + 0x50]
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
call fcn.00458760
sub esp, 0x84
mov edi, esp
push ebp
mov ecx, 0x21
lea esi, [esp + 0xd0]
push str.error_code__d__openfile__s_.
mov byte [esp + 0x160], 2
rep movsd dword es:[edi], dword [esi]
call fcn.00468970
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0xd8]
add esp, 0x8c
cmp eax, ecx
je 0x481d5c
push eax
call fcn.004d5b05
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 0
call fcn.0049187d
mov eax, dword [esp + 0xec]
cmp eax, ebx
je 0x481d81
push eax
call fcn.004910f4
add esp, 4
mov edx, dword [esp + 0xe0]
push edx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
call fcn.004910f4
add esp, 4
xor eax, eax
jmp 0x482399
lea eax, [esp + 0xe0]
push 1
push eax
call fcn.0047eb10
mov edi, eax
add esp, 8
cmp edi, ebx
jl 0x481e41
mov ecx, dword [esp + 0xf0]
mov ebp, dword [esp + 0xec]
mov edx, ecx
sub edx, ebp
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x481dff
call fcn.004d84ce
mov ecx, dword [esp + 0xf0]
mov ebp, dword [esp + 0xec]
sub ecx, ebp
mov eax, 0x7aba01eb
imul ecx
mov esi, edi
imul esi, esi, 0x216
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea ebx, [esi + ebp]
cmp edi, ecx
jb 0x481e2d
call fcn.004d84ce
mov ebp, dword [esp + 0xec]
mov edx, dword [ebx + 8]
mov eax, dword [esi + ebp + 4]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004913fc
xor ebx, ebx
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, edi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x481fe1
xor ebp, ebp
cmp esi, eax
jb 0x481e85
call fcn.004d84ce
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
cmp dword [ecx + ebp], 1
je 0x481fbd
mov edx, edi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x481ebb
call fcn.004d84ce
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
cmp dword [ecx + ebp], 0x64
je 0x481fbd
mov edx, edi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x481ef1
call fcn.004d84ce
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + ebp + 8]
sub edi, ecx
mov dword [esp + 0x38], edx
mov eax, 0x7aba01eb
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x481f1c
call fcn.004d84ce
mov ecx, dword [esp + 0xec]
mov ecx, dword [ecx + ebp]
push 8
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004913fc
mov edi, dword [esp + 0xf0]
mov ebx, dword [esp + 0xec]
mov ecx, edi
sub ecx, ebx
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x481f6d
call fcn.004d84ce
mov edi, dword [esp + 0xf0]
mov ebx, dword [esp + 0xec]
sub edi, ebx
mov eax, 0x7aba01eb
imul edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [ebx + ebp]
mov dword [esp + 0x14], ecx
cmp esi, eax
jb 0x481f97
call fcn.004d84ce
mov ebx, dword [esp + 0xec]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
mov eax, dword [ebx + ebp + 4]
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.004913fc
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
xor ebx, ebx
mov edx, edi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebp, 0x216
cmp esi, eax
jb 0x481e85
lea ecx, [esp + 0xe0]
push 0x64
push ecx
call fcn.0047eb10
mov ebp, eax
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x3c], ebp
jl 0x482341
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, esi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x48203b
call fcn.004d84ce
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov ebx, ebp
imul ebx, ebx, 0x216
mov edx, dword [ebx + ecx + 8]
sub esi, ecx
mov dword [esp + 0x44], edx
mov eax, 0x7aba01eb
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x48206e
call fcn.004d84ce
mov ecx, dword [esp + 0xec]
mov ecx, dword [ebx + ecx]
push 8
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004913fc
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, esi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4820bf
call fcn.004d84ce
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edi, dword [ebx + ecx + 4]
mov edx, esi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
cmp ebp, eax
jb 0x4820fb
call fcn.004d84ce
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov edx, dword [ebx + ecx + 8]
mov dword [esp + 0x1c], edx
mov edx, esi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x48212f
call fcn.004d84ce
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
cmp dword [ebx + ecx + 4], 0
jne 0x482230
mov edx, esi
sub edx, ecx
mov eax, 0x7aba01eb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x482166
call fcn.004d84ce
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
cmp dword [ebx + ecx + 8], 0
jne 0x482230
sub esi, ecx
mov eax, 0x7aba01eb
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], 1
cmp ebp, eax
jb 0x48219c
call fcn.004d84ce
mov ecx, dword [esp + 0xec]
lea ecx, [ebx + ecx + 0xc]
push ecx
call fcn.0047cf40
push 0x4000000
mov dword [esp + 0x24], eax
call fcn.004d5c5c
xor esi, esi
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x48223a
push 0x4000000
call fcn.004d5c5c
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x48223a
lea ecx, [esp + 0x24]
call fcn.00491660
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 0
call fcn.0049187d
mov eax, dword [esp + 0xec]
cmp eax, esi
je 0x482204
push eax
call fcn.004910f4
add esp, 4
mov edx, dword [esp + 0xe0]
push edx
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf8], esi
call fcn.004910f4
add esp, 4
xor eax, eax
jmp 0x482399
mov dword [esp + 0x14], 0
jmp 0x482250
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xec]
mov esi, dword [esp + 0xf0]
lea esp, [esp]
cmp dword [esp + 0x14], 0
je 0x48225b
mov ebp, edi
jmp 0x482262
mov eax, dword [esp + 0x20]
lea ebp, [eax + edi]
mov edi, dword [esp + 0x1c]
cmp edi, 0x4000000
jl 0x482273
mov edi, 0x4000000
cmp dword [esp + 0x14], 0
je 0x4822ca
sub esi, ecx
mov eax, 0x7aba01eb
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], 0
cmp dword [esp + 0x3c], eax
jb 0x4822a7
call fcn.004d84ce
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push ebp
push edi
push 0
push eax
lea ecx, [ebx + ecx + 0xc]
push ecx
call fcn.0047d310
add esp, 0x18
test eax, eax
je 0x4823b3
mov edx, dword [esp + 0xf8]
push 0x20
push edx
push edi
push ebp
call fcn.004897b0
add esp, 0x10
push edi
push ebp
lea ecx, [esp + 0x2c]
call fcn.004913fc
mov eax, 0x4000000
sub dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
mov eax, dword [esp + 0xfc]
xor esi, esi
cmp eax, esi
je 0x48231e
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x20]
push ecx
push edx
push esi
call eax
add esp, 0xc
test al, al
je 0x48240c
cmp dword [esp + 0x1c], esi
jg 0x48223a
cmp dword [esp + 0x14], esi
je 0x48233f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48233f
push eax
call fcn.004d5b05
add esp, 4
xor ebx, ebx
lea ecx, [esp + 0x24]
call fcn.00491660
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 0
call fcn.0049187d
mov eax, dword [esp + 0xec]
cmp eax, ebx
je 0x48236f
push eax
call fcn.004910f4
add esp, 4
mov edx, dword [esp + 0xe0]
push edx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
call fcn.004910f4
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
lea ecx, [esp + 0x24]
call fcn.00491660
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 0
call fcn.0049187d
mov eax, dword [esp + 0xec]
xor esi, esi
cmp eax, esi
je 0x4823e3
push eax
call fcn.004910f4
add esp, 4
mov eax, dword [esp + 0xe0]
push eax
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf8], esi
call fcn.004910f4
add esp, 4
xor eax, eax
jmp 0x482399
lea ecx, [esp + 0x24]
call fcn.00491660
lea ecx, [esp + 0x24]
mov byte [esp + 0xd4], 0
call fcn.0049187d
mov eax, dword [esp + 0xec]
cmp eax, esi
je 0x48243a
push eax
call fcn.004910f4
add esp, 4
mov ecx, dword [esp + 0xe0]
push ecx
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf8], esi
call fcn.004910f4
add esp, 4
xor eax, eax
jmp 0x482399