Function at 0x10099730
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180eba
mov eax, dword fs:[0]
push eax
sub esp, 0xeb8
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xec4], edi
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0xeb8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xeb0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xeb4], eax
lea eax, [ebp - 0x58]
push eax
call esi
mov eax, dword [ebp - 0x44]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
cmp eax, 0x40
jg 0x100997ab
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jge 0x100997ab
mov eax, ecx
jmp 0x100997ce
lea eax, [ebp - 0x58]
push eax
call esi
mov eax, dword [ebp - 0x44]
mov ecx, 1
cmp eax, 1
cmovl eax, ecx
mov ecx, 0x40
cmp eax, ecx
cmovg eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, dword [edi + 0xc]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x20]
mov ecx, dword [edx + 0x70]
test ecx, ecx
cmove ecx, eax
mov eax, esi
cmp ecx, esi
cmovb eax, ecx
mov ecx, 0x20
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0xebc], ecx
mov ecx, dword [edi + 8]
push ecx
push dword [ecx + 0x72c]
lea eax, [ecx + 0x734]
push dword [ecx + 0x728]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x744]
push eax
lea eax, [ecx + 0x1c]
push eax
push edx
lea ecx, [ebp - 0xea8]
call fcn.10098f40
push dword [ebp - 0xebc]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp - 0xeb0]
mov eax, dword [edi + 8]
push dword [ebp - 0xeb8]
push esi
push dword [ebp + 8]
push dword [eax + 0x34]
lea eax, [ebp - 0xea8]
push eax
call fcn.10099fd0
test al, al
jne 0x1009989a
mov eax, dword [ebp - 0xeb4]
xor esi, esi
mov byte [eax], 1
nop dword [eax + eax]
mov ecx, dword [ebp + esi*4 - 0xfc]
test ecx, ecx
je 0x1009988d
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [ebp + esi*4 - 0xfc], 0
inc esi
cmp esi, 0x20
jb 0x10099870
xor edi, edi
jmp 0x10099d90
lea eax, [ebp - 0xea8]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xe20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0xe20]
mov byte [ebp - 0x70], 0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor edi, edi
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
xor esi, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0xeb0], 1
mov dword [ebp - 0xeb4], esi
cmp dword [ebp - 0xebc], esi
jbe 0x10099a90
xorps xmm0, xmm0
push 8
movlpd qword [ebp - 0x34], xmm0
call fcn.1015144f
mov dword [ebp - 0xeb8], eax
push 0x10
mov byte [ebp - 4], 3
call fcn.1015144f
lea ecx, [ebp - 0xea8]
mov dword [ebp - 0x2c], eax
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xec4]
mov dword [eax], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x100a8510
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0xeb8]
lea ecx, [esi + 4]
push ecx
push 0
push eax
push 0x1009a930
push 0
push 0
mov dword [ebp - 0xec0], ecx
call fcn.10161c9f
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x10099e88
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], esi
push 0x10
mov byte [ebp - 4], 5
call fcn.1015144f
mov ecx, dword [ebp - 0xeb8]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0xec0], esi
lea edx, [esi + 4]
mov dword [ebp - 0x34], ecx
add esp, 4
mov dword [ebp - 0x30], esi
movups xmmword [esi], xmm0
mov dword [ebp - 0x2c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [edx], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_class_std::thread_.0
mov dword [esi + 0xc], ecx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x10099a16
mov dword [eax], 0
mov dword [eax + 4], 0
lock inc dword [edx]
mov dword [eax], ecx
mov dword [eax + 4], esi
add dword [ebp - 0x18], 8
jmp 0x10099a26
lea ecx, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.1009a6d0
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp - 0x20]
je 0x10099a3b
mov eax, dword [ebp - 0xeb4]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x24], edi
jmp 0x10099a4e
lea eax, [ebp - 0xeb4]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.100816f0
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 2
test esi, esi
je 0x10099a77
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x10099a77
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x10099a77
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xeb4]
inc esi
mov dword [ebp - 0xeb4], esi
cmp esi, dword [ebp - 0xebc]
jb 0x10099922
mov esi, dword [ebp - 0xec4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
nop
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0xea8]
mov dword [ebp - 0x74], edx
push eax
mov ecx, esi
call fcn.10099190
xor edi, edi
xorps xmm0, xmm0
test al, al
movlpd qword [ebp - 0x78], xmm0
mov eax, dword [esi + 8]
cmovne edi, dword [ebp - 0xeb0]
mov ecx, dword [eax + 0x754]
or ecx, dword [eax + 0x750]
lea eax, [ebp - 0xe20]
push eax
jne 0x10099b60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0xe04], 0
lea eax, [ebp - 0xe20]
push eax
setne byte [ebp - 0xea9]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xea9], 0
jne 0x10099b2c
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xea8]
push eax
call fcn.100996c0
test al, al
jne 0x10099b9a
mov eax, dword [ebp - 0xe78]
cmp byte [eax + 0x90], 0
je 0x10099b55
push 0x101caadc
call fcn.10003260
push 1
call fcn.1015d37f
push eax
call fcn.10162083
add esp, 0xc
mov dword [ebp - 0xeb0], edi
jmp 0x10099aa0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0xe20]
mov byte [ebp - 0x70], 1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 8]
cmp dword [eax + 0x74c], 0
jne 0x10099b8d
mov dword [eax + 0x74c], 0xa0000017
mov eax, dword [esi + 8]
mov dword [eax + 0x754], 1
lea eax, [ebp - 0xe20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0xe04], 0
lea eax, [ebp - 0xe20]
push eax
setne byte [ebp - 0xea9]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xea9], 0
je 0x10099c40
mov dword [ebp - 0xeb0], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 1
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0xea8]
mov dword [ebp - 0x74], edx
push eax
mov ecx, esi
call fcn.10099190
xor edi, edi
xorps xmm0, xmm0
test al, al
movlpd qword [ebp - 0x78], xmm0
lea eax, [ebp - 0xe20]
cmovne edi, dword [ebp - 0xeb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp - 0xe04], 0
lea eax, [ebp - 0xe20]
push eax
setne byte [ebp - 0xea9]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xea9], 0
mov dword [ebp - 0xeb0], edi
jne 0x10099bd1
nop dword [eax]
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xea8]
push eax
call fcn.100996c0
test al, al
je 0x10099c40
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 3
mov dword [ebp - 0xeb0], ecx
test eax, eax
je 0x10099cc3
nop dword [eax]
mov esi, dword [edx + ecx*8]
cmp dword [esi + 4], 0
je 0x10099eae
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x10099ea7
push 0
push dword [esi + 4]
push dword [esi]
call fcn.10176ee6
add esp, 0xc
test eax, eax
jne 0x10099ea0
mov ecx, dword [ebp - 0xeb0]
mov dword [esi], eax
inc ecx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 3
mov dword [ebp - 0xeb0], ecx
cmp ecx, eax
jb 0x10099c70
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0xfc]
test ecx, ecx
je 0x10099ce2
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov dword [ebp + esi*4 - 0xfc], 0
inc esi
cmp esi, 0x20
jb 0x10099cc5
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10099d2a
mov eax, dword [ebp - 0x20]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x10099d20
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10099e9b
push edx
push ecx
call fcn.10151441
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10099d90
mov edx, dword [ebp - 0x18]
push ecx
call fcn.1009a620
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x10099d71
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10099e9b
push edx
push ecx
call fcn.10151441
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x1009e660
push 0x20
push 0x68
lea eax, [ebp - 0xdfc]
mov dword [ebp - 4], 7
push eax
call fcn.101783e4
mov eax, dword [ebp - 0xe00]
test eax, eax
je 0x10099dc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe00], 0
lea ecx, [ebp - 0xe08]
call fcn.1009a5b0
lea eax, [ebp - 0xe20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xe4c]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x10099e07
mov esi, dword [eax]
push 0xc
push eax
call fcn.10151441
add esp, 8
mov eax, esi
test esi, esi
jne 0x10099df4
push 0xc
push dword [ebp - 0xe4c]
call fcn.10151441
mov ecx, dword [ebp - 0xe58]
add esp, 8
mov eax, dword [0x101c5980]
test ecx, ecx
je 0x10099e38
cmp ecx, eax
je 0x10099e38
push ecx
call fcn.10154f5a
mov eax, dword [0x101c5980]
add esp, 4
mov ecx, dword [ebp - 0xe64]
mov dword [ebp - 0xe58], eax
mov dword [ebp - 0xe54], 0
mov dword [ebp - 0xe50], 0
test ecx, ecx
je 0x10099e69
cmp ecx, eax
je 0x10099e69
push ecx
call fcn.10154f5a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10151433
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0xec0]
push 6
mov dword [eax], 0
call fcn.10176d27
call fcn.10155291
push 2
call fcn.10176d27
push 5
call fcn.10176d27
push 1
call fcn.10176d27
int3