Function at 0x8771b4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x8771bc
push ecx
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x8783c6
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x87831f
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 0x35], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
add eax, 0x5c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x310]
mov edx, dword [edx + 0x38]
call fcn.00405594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
xor edx, edx
call fcn.006e7bcc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
xor ecx, ecx
mov dl, 1
call fcn.006e7ce4
mov eax, dword [0x98a420]
mov eax, dword [eax]
call fcn.0047aed4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x616b84]
call fcn.00617c6c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00619b94
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov dl, 2
call fcn.00638894
mov eax, dword [ebp - 0x18]
call fcn.00624ac0
mov byte [eax + 0x30], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00430324
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.00430208
mov edx, 0xffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
xor esi, esi
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38c], edx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
mov edx, 0x8783e0
call fcn.00404d14
mov byte [ebp - 0x36], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.005f6738
dec eax
test eax, eax
jl 0x877d67
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x98a420]
mov eax, dword [eax]
call fcn.0047aed4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
cmp dword [eax + 0xc], 1
je 0x877d67
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov edx, dword [ebp - 0xc]
call fcn.005f65fc
mov eax, dword [ebp - 0x44]
call fcn.008b4aa0
test al, al
je 0x877d5b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov edx, dword [ebp - 0xc]
call fcn.005f66d0
test eax, eax
jle 0x877d1b
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 1
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x390], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x8773a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877570
lea eax, [ebp - 0x34]
call fcn.004053b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x8773fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x8773fc
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.0040b818
lea eax, [ebp - 0x48]
mov edx, 0x8783ec
call fcn.00404f4c
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x34]
call fcn.00405594
jmp 0x8774c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x877447
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877447
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov edx, dword [ebp - 0xc]
call fcn.005f65fc
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x34]
call fcn.00485110
jmp 0x8774c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x8774c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x8774c3
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov edx, dword [ebp - 0xc]
call fcn.005f65fc
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.00485110
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.0040b818
lea eax, [ebp - 0x5c]
mov edx, 0x8783f8
call fcn.00404f4c
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
call fcn.00405594
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x34]
pop ecx
call fcn.0040568c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test eax, eax
jne 0x877525
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877510
mov eax, 0x15
call fcn.008ae474
mov ebx, eax
mov eax, 8
call fcn.008ae474
sub ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x390], ebx
jmp 0x877570
mov eax, 0x17
call fcn.008ae474
mov edx, dword [ebp - 4]
mov dword [edx + 0x390], eax
jmp 0x877570
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x87755d
mov eax, 0x15
call fcn.008ae474
mov ebx, eax
mov eax, 5
call fcn.008ae474
sub ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x390], ebx
jmp 0x877570
mov eax, 0x17
call fcn.008ae474
mov edx, dword [ebp - 4]
mov dword [edx + 0x390], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov edx, dword [ebp - 0xc]
call fcn.005f65fc
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00875954
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test eax, eax
jne 0x877949
test esi, esi
je 0x8775df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x8775df
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, 7
jge 0x8775e3
xor ebx, ebx
jmp 0x877612
mov eax, 3
call fcn.008ae474
mov edx, eax
shl eax, 3
sub eax, edx
sar eax, 1
jns 0x8775fb
adc eax, 0
push eax
mov eax, 3
call fcn.008ae474
pop edx
sub edx, eax
xor eax, eax
call fcn.00437fc0
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.00430208
cmp byte [ebp - 0x36], 0
je 0x877661
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
pop edx
call fcn.00633528
jmp 0x87769f
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
add edi, eax
sub edi, ebx
push edi
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
pop edx
call fcn.00633528
mov byte [ebp - 0x36], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x390]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
pop edx
call fcn.00437fc0
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
pop edx
call fcn.006336e8
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov ecx, ebx
pop edx
call fcn.00636e04
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x87777b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x87792a
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
call fcn.00877154
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00430324
cmp dword [ebp - 0x14], 1
jne 0x87788f
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
call fcn.00405594
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
xor ecx, ecx
xor edx, edx
call fcn.00485aac
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
call fcn.00877154
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877855
mov eax, dword [ebp - 0x34]
push eax
mov eax, 3
call fcn.008ae474
mov edx, eax
shl edx, 3
sub edx, eax
sar edx, 1
jns 0x877822
adc edx, 0
xor eax, eax
call fcn.00437fc0
add eax, esi
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
push eax
mov eax, 4
call fcn.008ae474
mov ecx, eax
pop eax
pop edx
call fcn.00485aac
jmp 0x877910
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
push eax
mov eax, 4
call fcn.008ae474
push eax
mov eax, 1
call fcn.008ae474
mov edx, eax
add edx, esi
pop ecx
pop eax
call fcn.00485aac
jmp 0x877910
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x8778db
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
push eax
mov eax, 4
call fcn.008ae474
push eax
mov eax, 3
call fcn.008ae474
mov edx, eax
add edx, esi
pop ecx
pop eax
call fcn.00485aac
jmp 0x877910
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
push eax
mov eax, 4
call fcn.008ae474
push eax
mov eax, 1
call fcn.008ae474
mov edx, eax
add edx, esi
pop ecx
pop eax
call fcn.00485aac
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00430324
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
add esi, eax
sub esi, ebx
jmp 0x877d0f
test esi, esi
je 0x87797d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x87797d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, 7
jge 0x877981
xor ebx, ebx
jmp 0x8779b0
mov eax, 3
call fcn.008ae474
mov edx, eax
shl eax, 3
sub eax, edx
sar eax, 1
jns 0x877999
adc eax, 0
push eax
mov eax, 3
call fcn.008ae474
pop edx
sub edx, eax
xor eax, eax
call fcn.00437fc0
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
mov edx, 0xffffff
call fcn.00430208
cmp byte [ebp - 0x36], 0
je 0x877a08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
sub eax, ebx
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x390]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
pop edx
call fcn.006336e8
jmp 0x877a4f
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
add edi, eax
sub edi, ebx
mov eax, dword [ebp - 4]
add edi, dword [eax + 0x390]
push edi
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
pop edx
call fcn.006336e8
mov byte [ebp - 0x36], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
pop edx
call fcn.00437fc0
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
pop edx
call fcn.00633528
push ebx
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
add eax, esi
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
sub eax, ebx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
xor ecx, ecx
pop edx
call fcn.00636e04
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x877b24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877cec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877b5c
mov eax, 3
call fcn.008ae474
mov edx, eax
shl edx, 3
sub edx, eax
sar edx, 1
jns 0x877b51
adc edx, 0
xor eax, eax
call fcn.00437fc0
mov edi, eax
jmp 0x877b68
mov eax, 2
call fcn.008ae474
mov edi, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
call fcn.00877154
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00430324
cmp dword [ebp - 0x14], 1
jne 0x877c72
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x2c]
call fcn.00405594
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
xor ecx, ecx
xor edx, edx
call fcn.00485aac
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
call fcn.00877154
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877c44
mov eax, dword [ebp - 0x34]
push eax
mov eax, 3
call fcn.008ae474
mov edx, eax
shl eax, 3
sub eax, edx
sar eax, 1
jns 0x877c0f
adc eax, 0
push eax
mov eax, 3
call fcn.008ae474
pop edx
sub edx, eax
xor eax, eax
call fcn.00437fc0
add eax, esi
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov edx, edi
pop ecx
call fcn.00485aac
jmp 0x877cd2
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
push eax
mov eax, 3
call fcn.008ae474
mov ecx, eax
add ecx, esi
inc ecx
mov edx, edi
pop eax
call fcn.00485aac
jmp 0x877cd2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
je 0x877ca6
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov ecx, esi
mov edx, edi
call fcn.00485aac
jmp 0x877cd2
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
push eax
mov eax, 3
call fcn.008ae474
mov ecx, eax
add ecx, esi
inc ecx
mov edx, edi
pop eax
call fcn.00485aac
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
call fcn.00638a04
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00430324
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
add esi, eax
sub esi, ebx
mov eax, dword [ebp - 4]
add esi, dword [eax + 0x390]
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x877366
mov eax, dword [0x98a420]
mov eax, dword [eax]
call fcn.0047aed4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x364]
cmp dword [ebx + 0xc], 1
je 0x877d67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.005f6738
push eax
mov eax, dword [ebp - 0xc]
inc eax
imul eax, eax, 0x64
pop edx
mov ecx, edx
cdq
idiv ecx
mov edx, eax
mov eax, ebx
call fcn.006e7bcc
inc dword [ebp - 0xc]
dec dword [ebp - 0x3c]
jne 0x877300
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
cmp dword [eax + 0xc], 0
sete byte [ebp - 0x35]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x878329
mov eax, dword [0x98a420]
mov eax, dword [eax]
call fcn.0047aed4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
mov edx, dword [eax + 0x50]
call fcn.006e7bcc
mov al, byte [ebp - 0x35]
and al, byte [ebp - 5]
je 0x877ebf
mov bl, 1
call fcn.008b0830
test al, al
je 0x877dc0
mov esi, 0x14
jmp 0x877dc5
mov esi, 0xf
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
imul edi, eax
imul eax, esi, 0x3e8
imul eax, eax, 0x3e8
cmp edi, eax
jle 0x877ea5
mov ax, word [0x8783fc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0045f564
push eax
push 0
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x78]
call fcn.0040b818
push dword [ebp - 0x78]
push 0x878408
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov edx, dword [eax]
call dword [edx + 8]
lea edx, [ebp - 0x7c]
call fcn.0040b818
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00405004
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov eax, dword [eax + 0x4c]
xor ecx, ecx
call fcn.008b47e4
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call fcn.00405594
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov eax, dword [eax + 0x7c8]
mov cl, 3
call fcn.0056c884
cmp eax, 6
je 0x877ea5
xor ebx, ebx
test bl, bl
je 0x8782f4
mov eax, dword [ebp - 0x18]
call fcn.00624ac0
call fcn.005d5724
jmp 0x8782f4
cmp byte [ebp - 0x35], 0
je 0x8782f4
xor edx, edx
push ebp
push 0x8782ed
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c4]
mov eax, dword [eax + 0xc8]
test eax, eax
jne 0x877f05
mov eax, dword [ebp - 0x18]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xcd], 0
jmp 0x877f3a
mov edx, dword [0x98a548]
dec eax
jne 0x877f25
mov eax, dword [ebp - 0x18]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xcd], 1
jmp 0x877f3a
mov eax, dword [ebp - 0x18]
call fcn.00624a6c
mov eax, dword [eax + 0x1bc]
mov byte [eax + 0xcd], 2
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov edx, dword [ebp - 4]
call fcn.00951738
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
call fcn.00624a6c
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.00581a20
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x80]
mov edx, dword [0x98a548]
mov edx, dword [edx]
mov edx, dword [edx + 0x344]
mov edx, dword [edx + 0x38]
call fcn.00404f0c
mov ecx, dword [ebp - 0x80]
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov edx, dword [ebp - 0x1c]
call fcn.008fe2e0
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov eax, dword [eax + 0xe78]
xor edx, edx
call fcn.00405738
je 0x877fef
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov eax, dword [eax + 0xe78]
call fcn.008b4ad4
test al, al
je 0x877fef
lea eax, [ebp - 0x24]
mov edx, dword [0x98a548]
mov edx, dword [edx]
mov edx, dword [edx + 0x7d8]
mov edx, dword [edx + 0xe78]
call fcn.00405410
jmp 0x87800b
lea eax, [ebp - 0x24]
mov edx, dword [0x98a548]
mov edx, dword [edx]
mov edx, dword [edx + 0x7d8]
mov edx, dword [edx + 0xe68]
call fcn.00405410
lea edx, [ebp - 0x30]
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c4]
mov eax, dword [eax + 0x2e0]
call fcn.0040adfc
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov eax, dword [eax + 0xe90]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x878054
mov eax, dword [ebp - 0x30]
mov edx, 0x878414
call fcn.00405088
jne 0x878072
lea eax, [ebp - 0x30]
mov edx, dword [0x98a548]
mov edx, dword [edx]
mov edx, dword [edx + 0x7c4]
mov edx, dword [edx + 0x2e0]
call fcn.00404d14
jmp 0x87807f
lea eax, [ebp - 0x30]
mov edx, 0x878424
call fcn.00404d14
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c4]
add eax, 0x2e0
mov edx, dword [ebp - 0x30]
call fcn.00404cd0
call fcn.0040e384
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x84]
mov eax, 0x878434
call fcn.0040f0ec
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x30]
call fcn.00404f4c
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x28]
call fcn.00405594
mov eax, dword [ebp - 0x24]
call fcn.008b4ad4
test al, al
je 0x878101
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 0x24]
call fcn.008b0e84
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x1c]
add eax, 0xe0
mov ecx, dword [ebp - 0x28]
call fcn.0040568c
mov eax, dword [ebp - 4]
call fcn.0045f564
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x8782d1
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x1c]
call fcn.0057f0ac
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x20]
call fcn.0040b2a4
xor eax, eax
push ebp
push 0x878161
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x1c], 0
je 0x878157
lea eax, [ebp - 0x1c]
call fcn.004120b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x87816b
xor eax, eax
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x20]
call fcn.00485148
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
call fcn.00404f0c
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x30]
call fcn.0040adfc
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov eax, dword [eax + 0xe90]
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x8781cb
mov eax, dword [ebp - 0x30]
mov edx, 0x878414
call fcn.00405088
jne 0x8781e9
lea edx, [ebp - 0x98]
mov eax, dword [ebp - 0x20]
call fcn.00485148
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x30]
call fcn.00404f0c
jmp 0x8781f6
lea eax, [ebp - 0x30]
mov edx, 0x878424
call fcn.00404d14
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7c4]
add eax, 0x2e0
mov edx, dword [ebp - 0x30]
call fcn.00404cd0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00484ff0
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov edx, dword [eax + 0xe68]
mov eax, dword [ebp - 0x24]
call fcn.008af524
test al, al
jne 0x878254
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
add eax, 0xe78
mov edx, dword [ebp - 0x24]
call fcn.004053ec
mov eax, dword [ebp - 0x18]
call fcn.00624a6c
mov edx, dword [ebp - 0x20]
mov si, 0xffec
call fcn.00404028
mov eax, dword [ebp - 0x20]
call fcn.008b4aa0
test al, al
je 0x8782d1
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
xor edx, edx
call fcn.00938230
mov ax, word [0x878448]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0045f564
push eax
lea eax, [ebp - 0x9c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x310]
mov edx, dword [edx + 0x30]
call fcn.00405594
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x98a548]
mov eax, dword [eax]
mov eax, dword [eax + 0x7d8]
mov eax, dword [eax + 0x7c8]
mov cl, 2
call fcn.0056c884
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8782f4
cmp dword [ebp - 0x1c], 0
je 0x8782ec
lea eax, [ebp - 0x1c]
call fcn.004120b8
ret
xor eax, eax
push ebp
push 0x878314
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.004120b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x87831e
ret