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

Disassembly:
push 0xffffffffffffffff
push 0x1017af49
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x101cc114]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cc114]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x270]
mov ebp, dword [esp + 0x288]
mov eax, dword [esp + 0x298]
mov ecx, dword [esp + 0x29c]
mov esi, dword [esp + 0x284]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xac], eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, eax
mov dword [ecx], 0xffffffff
mov dword [eax], 0xffffffff
nop
fld qword [0x10181880]
fld qword [esp + 0x28c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x10086792
fld1
fcompp
fnstsw ax
test ah, 5
jnp 0x10086794
cmp dword [esp + 0x294], 3
ja 0x10086794
push 0x14
call fcn.1010956d
add esp, 4
mov dword [esp + 0xa4], eax
mov dword [esp + 0x268], 0
test eax, eax
je 0x10085d8c
mov ecx, eax
call fcn.1010c8ec
mov edi, eax
mov dword [esp + 0x84], eax
jmp 0x10085d95
xor edi, edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x268], 0xffffffff
push edx
pop edx
test edi, edi
je 0x10086794
push 0
push edi
push 0x10181488
push esi
call fcn.1005eb40
add esp, 0x10
mov dword [esp + 0x88], eax
mov edx, edx
test eax, eax
jne 0x10085dda
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
push eax
pop eax
jmp 0x10086794
mov cl, cl
mov edi, edi
mov dword [esp + 0x18], 0
push ebx
pop ebx
mov edx, edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28c]
push edx
mov edx, dword [esp + 0x28c]
push eax
push ecx
push edx
push ebx
call fcn.10058280
add esp, 0x28
test eax, eax
jne 0x10085e42
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
push ecx
pop ecx
jmp 0x10086794
xor ebx, ebx
mov dword [esp + 0x8c], ebx
mov dh, dh
mov bl, bl
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10085e54
sub eax, edx
cmp eax, 2
jne 0x10085f09
mov ebx, 1
mov dword [esp + 0x8c], ebx
nop
lea edx, [esp + 0x23c]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10085e80
push ebx
pop ebx
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10085e92
lea edi, [esp + 0x23c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, ebx
test cl, cl
jne 0x10085ea7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
pop ebx
mov eax, ebp
mov ecx, ebp
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10085ec6
lea edi, [esp + 0x23c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea ecx, [ecx]
mov cl, byte [edi + 1]
add edi, ebx
test cl, cl
jne 0x10085ee0
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]
push eax
pop eax
lea ebp, [esp + 0x23c]
mov dword [esp + 0x9c], ebp
mov ebx, ebx
mov dl, dl
test ebx, ebx
jne 0x10085f5c
xor edx, edx
cmp dword [esp + 0x30], edx
jle 0x10085fc7
mov ecx, dword [esp + 0x2c]
nop
xor eax, eax
test ecx, ecx
jle 0x10085f51
jmp 0x10085f30
mov ecx, edx
imul ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x18]
lea ecx, [ecx + eax*4]
mov ecx, ecx
mov byte [ecx + 3], 0
mov al, al
mov ecx, dword [esp + 0x2c]
add eax, 1
cmp eax, ecx
jl 0x10085f30
add edx, 1
cmp edx, dword [esp + 0x30]
jl 0x10085f20
jmp 0x10085fc7
xor ebx, ebx
cmp dword [esp + 0x30], ebx
jle 0x10085fc7
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x10085fbe
mov edi, edi
mov edx, ebx
imul edx, dword [esp + 0x1c]
add edx, dword [esp + 0x18]
lea ecx, [edx + esi*4]
push ecx
pop ecx
movzx eax, byte [ecx + 2]
xchg ebx, eax
xchg ebx, eax
movzx edx, byte [ecx + 1]
mov bh, bh
movzx edi, byte [ecx]
push eax
pop eax
add edi, edx
add edi, eax
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov eax, eax
movzx eax, dl
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov dword [ecx], edx
push ecx
pop ecx
mov eax, dword [esp + 0x2c]
add esi, 1
cmp esi, eax
jl 0x10085f70
add ebx, 1
cmp ebx, dword [esp + 0x30]
jl 0x10085f68
push eax
pop eax
mov esi, esi
mov dword [esp + 0x7c], 0
push ecx
pop ecx
mov dh, dh
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
cmp edi, dword [ebx + 0x3268]
jl 0x10086585
cmp dword [ebx + 0x3264], 0
je 0x10086585
mov esi, esi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
push edx
pop edx
push eax
pop eax
mov dh, dh
mov esi, dword [esp + 0x64]
cmp edi, esi
jae 0x10086023
mov esi, edi
mov dword [esp + 0x74], edi
mov ecx, ecx
jmp 0x10086029
mov dword [esp + 0x74], esi
push ebx
pop ebx
mov eax, dword [ebx + 0x326c]
test eax, eax
jle 0x1008603f
cmp esi, eax
jle 0x1008603f
mov esi, eax
mov dword [esp + 0x74], esi
mov bl, bl
cmp esi, 0x40
jl 0x1008604f
mov esi, 0x40
mov dword [esp + 0x74], esi
mov dl, dl
mov dword [esp + 0xa4], esi
mov esi, esi
lea ebp, [esi*4]
push ebp
call fcn.10117399
mov ebx, eax
add esp, 4
mov dword [esp + 0x94], ebx
mov dh, dh
test ebx, ebx
je 0x10086557
mov edi, esi
imul edi, edi, 0x170
push edi
call fcn.10117399
add esp, 4
mov dword [esp + 0x90], eax
mov ah, ah
test eax, eax
je 0x100864cf
push ebp
call fcn.10117399
add esp, 4
mov dword [esp + 0x7c], eax
mov ch, ch
test eax, eax
je 0x100864cf
push ebp
push 0
push ebx
call fcn.101183f0
add esp, 0xc
mov ebp, ebp
mov ecx, dword [esp + 0x90]
push edi
xor edi, edi
push edi
push ecx
call fcn.101183f0
add esp, 0xc
push edx
pop edx
mov edx, dword [esp + 0x7c]
push ebp
push edi
push edx
call fcn.101183f0
add esp, 0xc
mov esi, esi
xor ecx, ecx
mov ah, ah
mov eax, dword [esp + 0x88]
cdq
idiv esi
mov dword [esp + 0xbc], eax
mov bh, bh
mov edi, edi
mov eax, dword [esp + 0x80]
mov dword [eax + 0x3260], edi
push eax
pop eax
cmp esi, edi
mov dword [esp + 0x78], edi
jle 0x10086335
mov ebp, dword [esp + 0x90]
mov eax, 0x58
sub eax, dword [esp + 0x9c]
add ebp, 4
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x7c]
sub eax, ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb0], eax
mov edi, edi
mov bh, bh
mov edx, dword [esp + 0xbc]
lea eax, [edx + ecx - 1]
mov dword [esp + 0x98], eax
mov edx, edx
mov eax, dword [esp + 0x74]
add eax, 0xffffffff
cmp dword [esp + 0x78], eax
jne 0x10086186
mov edx, dword [esp + 0x88]
add edx, 0xffffffff
mov dword [esp + 0x98], edx
push ebx
pop ebx
mov ah, ah
mov eax, dword [esp + 0x80]
lea ebx, [ebp - 4]
mov dword [ebx], eax
mov ecx, ecx
mov edx, dword [esp + 0x84]
mov dword [ebp], edx
mov edi, edi
mov dword [ebp + 4], ecx
xchg ebx, eax
xchg ebx, eax
mov eax, dword [esp + 0x98]
mov dword [ebp + 8], eax
mov cl, cl
xor eax, eax
mov dword [ebp + 0x10], eax
mov bh, bh
mov dword [ebp + 0x168], eax
mov esi, esi
mov ecx, dword [esp + 0x2a0]
mov dword [ebp + 0xc], ecx
mov ecx, ecx
mov edx, dword [esp + 0x8c]
mov dword [ebp + 0x14], edx
mov ecx, ecx
lea edi, [ebp + 0x18]
mov ecx, 0xa
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov bh, bh
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x40], eax
push ebx
pop ebx
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x44], ecx
push ebx
pop ebx
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x48], edx
push ebx
pop ebx
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x4c], eax
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [esp + 0x294]
mov dword [ebp + 0x54], ecx
mov dl, dl
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x9c]
add edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10086230
mov esi, esi
fld qword [esp + 0x28c]
fstp qword [ebp + 0x15c]
mov al, al
push 0x1c
call fcn.1010956d
add esp, 4
mov dword [esp + 0xb4], eax
mov dword [esp + 0x268], 2
xor ecx, ecx
cmp eax, ecx
je 0x1008627e
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ecx
mov byte [eax + 4], cl
jmp 0x10086280
xor eax, eax
mov dword [esp + 0x268], 0xffffffff
mov dword [ebp + 0x164], eax
mov ecx, ecx
cmp dword [ebp + 0x164], ecx
je 0x10086318
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xa8]
mov dword [eax + esi], ebx
mov ebp, ebp
call fcn.1003f2b0
mov edi, eax
push eax
pop eax
mov ah, ah
push 0
push 0
push ebx
push 0x10085c30
push 0
push 0
call fcn.10119b6f
add esp, 0x18
mov ebp, ebp
mov dword [esi], eax
mov ecx, ecx
push edi
call fcn.1003f370
add esp, 4
push ebx
pop ebx
cmp dword [esi], 0
je 0x10086320
mov ecx, dword [esp + 0x98]
add ecx, 1
mov cl, cl
mov eax, dword [esp + 0x78]
add eax, 1
add esi, 4
add ebp, 0x170
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x78], eax
mov dword [esp + 0xa8], esi
jl 0x10086150
jmp 0x1008632a
mov dword [esp + 0x78], ecx
mov ecx, ecx
jmp 0x1008632a
mov dword [esp + 0x78], 0
mov ebx, ebx
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x74]
cmp dword [esp + 0x78], esi
jne 0x10086465
push eax
pop eax
add esi, 0xffffffff
mov dword [esp + 0x78], esi
mov ecx, dword [esp + 0x74]
push 0xffffffffffffffff
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov ebp, eax
mov eax, eax
cmp ebp, 0xffffffff
je 0x10086465
mov edi, edi
mov bl, bl
mov esi, dword [esp + 0x7c]
mov edx, dword [esi + ebp*4]
mov eax, dword [edx + 0x168]
cmp dword [eax + 0x14], 0
lea edi, [esi + ebp*4]
ja 0x100863dc
mov ecx, dword [ebx + ebp*4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xchg ebx, eax
xchg ebx, eax
mov dword [ebx + ebp*4], 0
push ecx
pop ecx
mov edx, dword [esp + 0x78]
cmp ebp, edx
mov eax, ebp
jge 0x100863b9
mov ecx, edx
lea esi, [edi + 4]
sub ecx, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + eax*4 + 4]
mov dword [ebx + eax*4], ecx
mov bl, bl
push eax
pop eax
add eax, 1
cmp eax, edx
jl 0x100863a7
mov eax, dword [esp + 0x74]
sub eax, 1
sub edx, 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov edi, edi
test eax, eax
jne 0x10086348
mov cl, cl
jmp 0x10086465
mov cl, 0x25
mov al, 0x64
mov dl, 0x7c
mov byte [esp + 0x230], cl
mov byte [esp + 0x231], al
mov byte [esp + 0x232], dl
mov byte [esp + 0x233], cl
mov byte [esp + 0x234], al
mov byte [esp + 0x235], dl
mov byte [esp + 0x236], cl
mov byte [esp + 0x237], al
mov byte [esp + 0x238], 0
xchg ebx, eax
xchg ebx, eax
mov edx, dword [esi + ebp*4]
mov eax, dword [edx + 0x168]
cmp dword [eax + 0x18], 0x10
jb 0x10086438
mov eax, dword [eax + 4]
jmp 0x1008643b
add eax, 4
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x23c]
push edx
push eax
call fcn.10119c85
add esp, 0x14
mov cl, cl
xchg ebx, eax
xchg ebx, eax
mov edi, dword [esp + 0x74]
test edi, edi
jle 0x10086493
mov eax, dword [esp + 0x7c]
mov ecx, ebx
sub ecx, eax
mov edx, edi
mov esi, 1
cmp dword [ecx + eax], 0
je 0x1008648c
mov ebp, dword [eax]
mov dword [ebp + 0x16c], esi
mov esi, esi
add eax, 4
sub edx, esi
jne 0x1008647c
xor esi, esi
test edi, edi
jle 0x100864cf
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x100864c6
push 0xffffffffffffffff
push eax
call edi
mov ebp, ebp
mov al, al
mov eax, dword [ebx + esi*4]
push eax
call ebp
push eax
pop eax
mov dword [ebx + esi*4], 0
push ecx
pop ecx
add esi, 1
cmp esi, dword [esp + 0x74]
jl 0x100864a5
push ebx
call fcn.1011745c
add esp, 4
push edx
pop edx
mov ebp, dword [esp + 0x90]
test ebp, ebp
je 0x10086541
mov ebx, dword [esp + 0xa4]
test ebx, ebx
jle 0x10086536
lea edi, [ebp + 0x168]
mov esi, dword [edi]
test esi, esi
je 0x1008652b
cmp dword [esi + 0x18], 0x10
jb 0x1008650e
mov eax, dword [esi + 4]
push eax
call fcn.1010959d
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
push esi
mov byte [esi + 4], 0
call fcn.1010959d
add esp, 4
push edx
pop edx
add edi, 0x170
sub ebx, 1
jne 0x100864f6
push ebp
call fcn.1011745c
add esp, 4
push ecx
pop ecx
cmp dword [esp + 0x7c], 0
je 0x10086557
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.1011745c
add esp, 4
mov eax, eax
mov edx, dword [esp + 0x18]
push edx
call fcn.1011745c
add esp, 4
mov dword [esp + 0x18], 0
mov dh, dh
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov ah, ah
jmp 0x10086794
mov cl, cl
push 0x170
xor ebx, ebx
lea ecx, [esp + 0xc4]
push ebx
push ecx
call fcn.101183f0
add esp, 0xc
push ecx
pop ecx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xc0], edx
mov dh, dh
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc4], eax
mov bh, bh
mov dword [esp + 0xc8], ebx
mov ebx, ebx
mov ecx, dword [esp + 0x88]
add ecx, 0xffffffff
mov dword [esp + 0xcc], ecx
mov bl, bl
mov dword [esp + 0xd4], ebx
mov ch, ch
mov edx, dword [esp + 0x2a0]
mov dword [esp + 0xd0], edx
mov ecx, ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xd8], eax
mov edi, edi
mov ecx, 0xa
lea esi, [esp + 0x28]
lea edi, [esp + 0xdc]
rep movsd dword es:[edi], dword [esi]
mov ebp, ebp
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x104], ecx
push ebx
pop ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x108], edx
mov ch, ch
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10c], eax
mov bh, bh
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x110], ecx
mov ebp, ebp
mov dword [esp + 0x22c], ebx
mov ah, ah
mov edx, dword [esp + 0x294]
mov dword [esp + 0x118], edx
mov ebp, ebp
lea edx, [esp + 0x11c]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x10086672
mov dh, dh
fld qword [esp + 0x28c]
fstp qword [esp + 0x220]
mov ebp, ebp
push 0x1c
call fcn.1010956d
add esp, 4
mov dword [esp + 0xb4], eax
mov dword [esp + 0x268], 1
cmp eax, ebx
je 0x100866c0
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], ebx
mov byte [eax + 4], 0
jmp 0x100866c2
xor eax, eax
mov dword [esp + 0x268], 0xffffffff
mov dword [esp + 0x228], eax
mov ebx, ebx
lea ecx, [esp + 0xc0]
call fcn.1007f0c0
mov ch, ch
mov ecx, dword [esp + 0x228]
cmp dword [ecx + 0x14], ebx
jbe 0x10086780
mov cl, 0x25
mov al, 0x64
mov dl, 0x7c
mov byte [esp + 0x230], cl
mov byte [esp + 0x231], al
mov byte [esp + 0x232], dl
mov byte [esp + 0x233], cl
mov byte [esp + 0x234], al
mov byte [esp + 0x235], dl
mov byte [esp + 0x236], cl
mov byte [esp + 0x237], al
mov byte [esp + 0x238], 0
mov ecx, ecx
mov eax, dword [esp + 0x228]
cmp dword [eax + 0x18], 0x10
jb 0x1008674e
mov eax, dword [eax + 4]
jmp 0x10086751
add eax, 4
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x23c]
push edx
push eax
call fcn.10119c85
add esp, 0x14
mov esi, esi
mov ecx, dword [esp + 0x228]
cmp ecx, ebx
je 0x1008678b
push 1
call fcn.1004dc50
mov ebp, ebp
jmp 0x10086557
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.10117937
add esp, 0x258
ret