Function at 0x5489f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x743d40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x912e94]
mov edx, dword [esi + 0x20304]
mov eax, dword [ecx]
push edi
push edx
call dword [eax + 0x70]
lea ecx, [esp + 0x4c]
call fcn.0043bca0
mov eax, dword [esi + 0x20304]
mov eax, dword [eax + 0x50]
xor ebx, ebx
push ebx
push 4
push eax
add eax, 1
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x8c], ebx
call fcn.00439ba0
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0043bdf0
mov edx, dword [esi + 0x20304]
mov ecx, dword [edx + 0x50]
imul ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x54]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx + 0x50]
cdq
idiv dword [ecx + 0x5c]
xor edi, edi
mov byte [esp + 0x7c], 1
mov dword [esp + 0x1c], edi
test eax, eax
jle 0x548d14
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx + 0x50]
cdq
idiv dword [ecx + 0x5c]
xor ebp, ebp
test eax, eax
jle 0x548cf3
sub esp, 8
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edi
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx]
mov dword [esp + 0x2c], esp
call dword [eax + 0xe0]
xor ebx, ebx
cmp al, 0x42
sete bl
sub esp, 8
mov eax, esp
lea ecx, [ebp + 1]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x20304]
mov edx, dword [ecx]
mov dword [esp + 0x2c], esp
call dword [edx + 0xe0]
xor ecx, ecx
cmp al, 0x42
sete cl
sub esp, 8
mov eax, esp
add edi, 1
mov dword [eax + 4], edi
mov dword [esp + 0x20], esp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esi + 0x20304]
mov edx, dword [ecx]
call dword [edx + 0xe0]
xor ecx, ecx
cmp al, 0x42
sete cl
sub esp, 8
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edi
mov dword [esp + 0x30], esp
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx]
call dword [eax + 0xe0]
xor ecx, ecx
cmp al, 0x42
mov eax, dword [esp + 0x24]
sete cl
cmp ebx, eax
jne 0x548bcd
cmp ebx, dword [esp + 0x18]
jne 0x548bcd
cmp ebx, ecx
jne 0x548bcd
test ebx, ebx
jne 0x548cd6
mov edx, dword [esi + 0x20304]
mov eax, dword [edx + 0x5c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
xor ebx, ebx
test eax, eax
jle 0x548bbc
mov edx, dword [esp + 0x14]
lea edi, [edx + ecx + 0x341]
imul eax, ebp
push 0xffffff
push edi
add eax, ebx
push eax
lea ecx, [esp + 0x38]
call fcn.0043b570
mov eax, dword [esi + 0x20304]
mov eax, dword [eax + 0x5c]
add ebx, 1
cmp ebx, eax
jl 0x548b93
mov ecx, dword [esp + 0x18]
add ecx, 1
cmp ecx, 0x13
mov dword [esp + 0x18], ecx
jl 0x548b82
jmp 0x548cd6
mov dl, byte [esp + 0x18]
test bl, bl
setne byte [esp + 0x13]
cmp bl, al
jne 0x548bfd
cmp dl, cl
jne 0x548be7
mov byte [esp + 0x12], 7
jmp 0x548c38
cmp dl, bl
jne 0x548bf2
mov byte [esp + 0x12], 0xd
jmp 0x548c38
cmp cl, bl
jne 0x548bfd
mov byte [esp + 0x12], 0xc
jmp 0x548c38
cmp bl, dl
jne 0x548c17
cmp al, cl
jne 0x548c0c
mov byte [esp + 0x12], 8
jmp 0x548c38
cmp bl, cl
jne 0x548c26
mov byte [esp + 0x12], 0xb
jmp 0x548c38
cmp bl, cl
jne 0x548c26
cmp al, dl
jne 0x548c33
mov byte [esp + 0x12], 9
jmp 0x548c38
cmp al, dl
jne 0x548c33
cmp cl, al
mov byte [esp + 0x12], 0xa
je 0x548c38
mov byte [esp + 0x12], 0
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx + 0x5c]
xor ebx, ebx
xor edi, edi
test eax, eax
jle 0x548cca
movzx edx, byte [esp + 0x12]
movzx eax, byte [esp + 0x13]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x14]
lea eax, [edx + ebx + 0x341]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov ecx, dword [esi + 0x20304]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x9a9180]
mov edx, ecx
imul ecx, ebp
imul edx, ebx
add edx, edi
movzx eax, byte [edx + eax]
mov edx, eax
shl edx, 8
sub edx, eax
shr edx, 5
mov eax, edx
shl eax, 8
add eax, edx
shl eax, 8
add eax, edx
push eax
mov eax, dword [esp + 0x1c]
add ecx, edi
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0043b570
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx + 0x5c]
add edi, 1
cmp edi, eax
jl 0x548c70
add ebx, 1
cmp ebx, 0x13
jl 0x548c43
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx + 0x50]
cdq
idiv dword [ecx + 0x5c]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, eax
jl 0x548ab7
mov ecx, dword [esi + 0x20304]
mov eax, dword [ecx + 0x50]
cdq
idiv dword [ecx + 0x5c]
add dword [esp + 0x14], 0x13
add edi, 1
mov dword [esp + 0x1c], edi
cmp edi, eax
jl 0x548aa0
push 0
lea edx, [esp + 0x50]
push str.c:_temp_mapmask.bmp
push edx
call fcn.0043bb70
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 0
call fcn.00437a90
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0043b050
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x70
ret