Function at 0x10079890
Capabilities:
Create thread
Get number of processors
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x101653b6
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b734c]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
mov edi, dword [esp + 0x260]
mov ebp, dword [esp + 0x27c]
mov esi, dword [esp + 0x278]
xor ebx, ebx
mov dword [esp + 0x24], ebx
push ebx
push 0x1016aa44
lea ecx, [esp + 0xb0]
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.10009d90
mov dword [esp + 0x258], 1
cmp dword [esp + 0x280], 0x64
ja 0x1007a23e
push 0x14
call fcn.100eed7d
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x258], 2
cmp eax, ebx
je 0x10079966
mov ecx, eax
call fcn.100f210c
mov ebx, eax
mov dword [esp + 0x2c], eax
jmp 0x1007996c
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x258], 1
test ebx, ebx
jne 0x100799c2
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xb0]
mov esi, 0xf
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov byte [edi + 4], bl
call fcn.10009b80
mov dword [esp + 0x24], 1
mov byte [esp + 0x258], bl
cmp dword [esp + 0xc0], 0x10
jb 0x1007a289
mov edx, dword [esp + 0xac]
push edx
jmp 0x1007a281
push 0
push ebx
push 0x1016b58c
push esi
call fcn.1004b350
add esp, 0x10
test eax, eax
mov dword [esp + 0x34], eax
jne 0x10079a16
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 1
mov ecx, ebx
call edx
lea eax, [esp + 0xa8]
push eax
mov ecx, edi
call fcn.10009e60
mov dword [esp + 0x24], 1
mov byte [esp + 0x258], 0
lea ecx, [esp + 0xa8]
call fcn.10006110
jmp 0x1007a29f
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x280]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x280]
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
xor esi, esi
push ecx
mov dword [esp + 0x3c], esi
call fcn.10045150
add esp, 0x28
test eax, eax
jne 0x10079a7e
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
lea ecx, [esp + 0xa8]
push ecx
jmp 0x100799ee
mov eax, ebp
mov dword [esp + 0x3c], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10079a87
sub eax, edx
cmp eax, 2
jne 0x10079c0e
lea edx, [esp + 0x22c]
mov dword [esp + 0x3c], 1
mov eax, ebp
sub edx, ebp
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10079ab0
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10079ac0
lea edi, [esp + 0x22c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10079ad5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10079af3
lea edi, [esp + 0x22c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10079b10
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x64]
lea ebp, [esp + 0x22c]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x40], ebp
jle 0x10079b9f
mov eax, dword [esp + 0x60]
xor esi, esi
test eax, eax
jle 0x10079b98
jmp 0x10079b50
mov edx, ebx
imul edx, dword [esp + 0x1c]
add edx, dword [esp + 0x14]
movzx edi, byte [edx + esi*4]
movzx eax, byte [edx + esi*4 + 2]
lea ecx, [edx + esi*4]
movzx edx, byte [ecx + 1]
add edi, edx
add edi, eax
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
movzx eax, dl
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov dword [ecx], edx
mov eax, dword [esp + 0x60]
add esi, 1
cmp esi, eax
jl 0x10079b50
mov edi, dword [esp + 0x64]
add ebx, 1
cmp ebx, edi
jl 0x10079b41
imul edi, dword [esp + 0x1c]
push edi
call fcn.100ffe35
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x44], ebx
jne 0x10079c5e
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, dword [esp + 0x14]
push eax
call fcn.100ffef8
mov esi, dword [esp + 0x50]
add esp, 4
lea ecx, [esp + 0xa8]
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.10009e60
mov dword [esp + 0x24], 1
mov byte [esp + 0x258], bl
lea ecx, [esp + 0xa8]
call fcn.10006110
mov eax, esi
jmp 0x1007a2a1
mov edi, dword [esp + 0x64]
xor edx, edx
cmp edi, esi
jle 0x10079b9f
mov ecx, dword [esp + 0x60]
lea esp, [esp]
xor eax, eax
test ecx, ecx
jle 0x10079c52
jmp 0x10079c30
mov ecx, edx
imul ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x14]
mov byte [ecx + eax*4 + 3], 0
lea ecx, [ecx + eax*4]
mov ecx, dword [esp + 0x60]
add eax, 1
cmp eax, ecx
jl 0x10079c30
mov edi, dword [esp + 0x64]
add edx, 1
cmp edx, edi
jl 0x10079c20
jmp 0x10079b9f
mov edx, dword [esp + 0x64]
imul edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edx
push eax
push ebx
call fcn.10102150
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp esi, dword [eax + 0x326c]
jl 0x1007a0cd
cmp dword [eax + 0x3268], 0
je 0x1007a0cd
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edi, dword [esp + 0x98]
cmp esi, edi
jae 0x10079cb8
mov edi, esi
mov dword [esp + 0x18], esi
jmp 0x10079cbc
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x3270]
test eax, eax
jle 0x10079cd4
cmp edi, eax
jle 0x10079cd4
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0x40
jl 0x10079ce2
mov edi, 0x40
mov dword [esp + 0x18], edi
lea ebx, [edi*4]
push ebx
call fcn.100ffe35
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x1007a037
mov esi, edi
imul esi, esi, 0x168
push esi
call fcn.100ffe35
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x10079fcf
push ebx
xor ebx, ebx
push ebx
push ebp
call fcn.10100e30
mov eax, dword [esp + 0x2c]
push esi
push ebx
push eax
call fcn.10100e30
mov eax, dword [esp + 0x4c]
cdq
idiv edi
mov edx, dword [esp + 0x40]
add esp, 0x18
xor ecx, ecx
cmp ebx, edi
mov dword [edx + 0x3264], ebx
mov dword [esp + 0x54], eax
jge 0x10079eee
jmp 0x10079d60
mov eax, dword [esp + 0x54]
lea edx, [eax + ecx - 1]
mov eax, dword [esp + 0x18]
add eax, 0xffffffff
cmp ebx, eax
mov dword [esp + 0x38], edx
jne 0x10079d82
mov eax, dword [esp + 0x34]
add eax, 0xffffffff
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov edx, ebx
imul edx, edx, 0x168
lea ebp, [edx + eax]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp], edx
mov edx, dword [esp + 0x288]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x164], 0
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x18], eax
lea edi, [ebp + 0x1c]
mov ecx, 0xa
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x44], ecx
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x48], edx
mov eax, dword [esp + 0x50]
mov dword [ebp + 0x4c], eax
mov ecx, dword [esp + 0x64]
imul ecx, dword [esp + 0x1c]
push ecx
call fcn.100ffe35
add esp, 4
test eax, eax
mov dword [ebp + 0x50], eax
je 0x10079ee4
mov edx, dword [esp + 0x64]
imul edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
call fcn.10102150
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, ebp
add esp, 0xc
sub ecx, eax
mov dword [ebp + 0x54], edx
lea edx, [ecx + 0x5c]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10079e35
mov edx, dword [esp + 0x280]
mov eax, dword [esp + 0x284]
push 0x1c
mov dword [ebp + 0x15c], edx
mov dword [ebp + 0x58], eax
call fcn.100eed7d
add esp, 4
mov dword [esp + 0x58], eax
mov byte [esp + 0x258], 4
test eax, eax
je 0x10079e86
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], 0
mov byte [eax + 4], 0
jmp 0x10079e88
xor eax, eax
mov byte [esp + 0x258], 1
test eax, eax
mov dword [ebp + 0x160], eax
je 0x10079ee2
call fcn.1002e150
push 0
push 0
push ebp
push 0x10077b60
push 0
push 0
mov esi, eax
call fcn.101025af
mov edi, dword [esp + 0x48]
push esi
mov dword [edi + ebx*4], eax
call fcn.1002e1f0
add esp, 0x1c
cmp dword [edi + ebx*4], 0
jne 0x10079ecc
xor ebx, ebx
mov ecx, dword [esp + 0x38]
add ebx, 1
add ecx, 1
cmp ebx, dword [esp + 0x18]
jl 0x10079d60
jmp 0x10079ee4
xor ebx, ebx
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
cmp ebx, edi
jne 0x10079f52
push 0xffffffffffffffff
push 1
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, 0xffffffff
je 0x10079f52
test edi, edi
jle 0x10079f52
mov esi, dword [esp + 0x20]
add esi, 0x160
mov ebx, edi
mov ecx, dword [esi]
cmp dword [ecx + 0x14], 0
jbe 0x10079f47
cmp dword [esp + 0xbc], 0
jbe 0x10079f34
push 0x1016b58c
lea ecx, [esp + 0xac]
call fcn.1000a090
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xb4]
call fcn.100099d0
add esi, 0x168
sub ebx, 1
jne 0x10079f11
xor eax, eax
test edi, edi
jle 0x10079f7c
mov ecx, dword [esp + 0x20]
add ecx, 0x164
cmp dword [ebp + eax*4], 0
je 0x10079f6f
mov dword [ecx], 1
add eax, 1
add ecx, 0x168
cmp eax, edi
jl 0x10079f62
xor esi, esi
test edi, edi
jle 0x10079fcf
mov ebx, dword [esp + 0x20]
add ebx, 0x50
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x10079fc2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, dword [ebp + esi*4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + esi*4], 0
mov eax, dword [ebx]
test eax, eax
je 0x10079fc2
push eax
call fcn.100ffef8
add esp, 4
mov dword [ebx], 0
add esi, 1
add ebx, 0x168
cmp esi, edi
jl 0x10079f89
push ebp
call fcn.100ffef8
mov ebx, dword [esp + 0x24]
add esp, 4
test ebx, ebx
je 0x1007a037
test edi, edi
jle 0x1007a02e
add ebx, 0x160
mov ebp, 0xf
nop
mov esi, dword [ebx]
test esi, esi
je 0x1007a01f
cmp dword [esi + 0x18], 0x10
jb 0x1007a008
mov eax, dword [esi + 4]
push eax
call fcn.100eedad
add esp, 4
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.100eedad
add esp, 4
add ebx, 0x168
sub edi, 1
jne 0x10079ff0
mov ebx, dword [esp + 0x20]
push ebx
call fcn.100ffef8
add esp, 4
mov eax, dword [esp + 0x44]
push eax
call fcn.100ffef8
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100ffef8
mov ecx, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x1c], edi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add esp, 8
push 1
call eax
mov esi, dword [esp + 0x4c]
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xb0]
mov ebx, 0xf
push ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
mov ecx, esi
mov byte [esi + 4], 0
call fcn.10009b80
mov dword [esp + 0x24], 1
mov byte [esp + 0x258], 0
cmp dword [esp + 0xc0], 0x10
jb 0x1007a0b0
mov edx, dword [esp + 0xac]
push edx
call fcn.100eedad
add esp, 4
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], edi
mov byte [esp + 0xac], 0
mov eax, esi
jmp 0x1007a2a1
push 0x168
xor esi, esi
lea eax, [esp + 0xc8]
push esi
push eax
call fcn.10100e30
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x294]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x48]
add eax, 0xffffffff
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x234], esi
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x5c]
mov ecx, 0xa
lea esi, [esp + 0x68]
lea edi, [esp + 0xec]
mov dword [esp + 0xe4], 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x11c], edx
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0x290]
lea edx, [esp + 0x12c]
add esp, 0xc
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ecx
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x1007a1a0
mov edx, dword [esp + 0x280]
push 0x1c
mov dword [esp + 0x224], edx
call fcn.100eed7d
add esp, 4
mov dword [esp + 0x58], eax
mov byte [esp + 0x258], 3
test eax, eax
je 0x1007a1e8
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], 0
mov byte [eax + 4], 0
jmp 0x1007a1ea
xor eax, eax
mov byte [esp + 0x258], 1
lea ecx, [esp + 0xc4]
mov dword [esp + 0x224], eax
call fcn.10076c70
mov ecx, dword [esp + 0x224]
cmp dword [ecx + 0x14], 0
jbe 0x1007a22a
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esp + 0xb4]
call fcn.10009b80
mov ecx, dword [esp + 0x224]
test ecx, ecx
je 0x1007a037
push 1
call fcn.1003b710
jmp 0x1007a037
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb0]
mov esi, 0xf
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], 0
call fcn.10009b80
mov dword [esp + 0x24], 1
mov byte [esp + 0x258], 0
cmp dword [esp + 0xc0], 0x10
jb 0x1007a289
mov ecx, dword [esp + 0xac]
push ecx
call fcn.100eedad
add esp, 4
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], 0
mov eax, edi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.101003d3
add esp, 0x248
ret