Function at 0x10091870
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101809b5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100918b8
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov esi, dword [edi + 4]
or ebx, 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
test esi, esi
je 0x100918e9
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100918e9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100918e9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100918f7
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x18]
mov esi, dword [edi + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
test esi, esi
je 0x10091926
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10091926
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10091926
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x38]
lea ecx, [edi + 0x100]
mov eax, dword [esi]
mov dword [edi + 0xf4], eax
mov al, byte [esi + 4]
mov byte [edi + 0xf8], al
mov eax, dword [esi + 8]
mov dword [edi + 0xfc], eax
lea eax, [esi + 0xc]
cmp ecx, eax
je 0x10091963
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x1009195a
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.1000a4c0
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x28]
lea ecx, [edi + 0x11c]
mov dword [edi + 0x118], eax
cmp ecx, edx
je 0x1009199b
mov esi, dword [edx]
mov eax, 0x2aaaaaab
mov edx, dword [edx + 4]
sub edx, esi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.10095320
mov esi, dword [ebp - 0x38]
lea edx, [esi + 0x34]
lea ecx, [edi + 0x128]
cmp ecx, edx
je 0x100919ca
mov esi, dword [edx]
mov eax, 0x2aaaaaab
mov edx, dword [edx + 4]
sub edx, esi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.10095320
mov esi, dword [ebp - 0x38]
lea eax, [esi + 0x40]
lea ecx, [edi + 0x134]
cmp ecx, eax
je 0x100919ea
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x100919e1
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.1000a4c0
mov eax, dword [esi + 0x58]
lea ecx, [edi + 0x150]
mov dword [edi + 0x14c], eax
lea eax, [esi + 0x5c]
cmp ecx, eax
je 0x10091a13
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x10091a0a
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.1000a4c0
mov al, byte [esi + 0x74]
mov byte [edi + 0x168], al
cmp dword [edi + 0xfc], 0
jne 0x10091a56
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov eax, 1
cmp ecx, eax
cmovl ecx, eax
mov eax, 0x20
cmp ecx, eax
cmovg ecx, eax
mov eax, 2
cmp ecx, eax
cmovl eax, ecx
mov dword [edi + 0xfc], eax
push ecx
lea ecx, [edi + 0x50]
call fcn.10080ac0
lea ecx, [edi + 0x134]
mov edx, 0x1018d5f0
call fcn.1003e010
test al, al
jne 0x10091a7e
lea ecx, [edi + 0x9c]
call fcn.100fc410
cmp dword [edi + 0x164], 0xf
lea edx, [edi + 0x150]
jbe 0x10091a8f
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091a94
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xbc]
call fcn.1000a4c0
cmp dword [edi + 0x114], 0xf
lea esi, [edi + 0x100]
mov ecx, esi
jbe 0x10091abd
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x10091b31
mov ebx, 0x1018d5f0
sub edx, 4
jb 0x10091ae1
nop
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10091ae6
add ecx, 4
add ebx, 4
sub edx, 4
jae 0x10091ad0
cmp edx, 0xfffffffc
je 0x10091b1a
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x10091b13
cmp edx, 0xfffffffd
je 0x10091b1a
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x10091b13
cmp edx, 0xfffffffe
je 0x10091b1a
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
jne 0x10091b13
cmp edx, 0xffffffff
je 0x10091b1a
mov al, byte [ecx + 3]
cmp al, byte [ebx + 3]
je 0x10091b1a
sbb eax, eax
or eax, 1
jmp 0x10091b1c
xor eax, eax
test eax, eax
jne 0x10091b2e
push 1
push 0x101ca760
mov ecx, esi
call fcn.1000a4c0
or ebx, 0xffffffff
cmp dword [esi + 0x10], 1
jne 0x10091b6d
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 0xf
jbe 0x10091b43
mov eax, dword [esi]
cmp byte [eax], 0x32
jl 0x10091b5f
mov eax, esi
cmp ecx, 0xf
jbe 0x10091b51
mov eax, dword [esi]
cmp byte [eax], 0x39
jg 0x10091b5f
push 1
push 0x101cb334
jmp 0x10091b66
push 1
push 0x101cb338
mov ecx, esi
call fcn.1000a5c0
cmp dword [esi + 0x14], 0xf
jbe 0x10091b75
mov esi, dword [esi]
movsx eax, byte [esi]
push eax
push str.0123456789xs
call fcn.10153900
mov ecx, dword [ebp - 0x38]
add esp, 8
add ecx, 0x40
mov edx, 0x1018d5f0
call fcn.1003e010
test al, al
jne 0x10091ba8
mov dword [edi + 0x30], 0x20
mov dword [edi + 0x34], 0
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10091bce
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10091bce
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x10091bce
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x10091bf3
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10091bf3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10091bf3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10151433
mov esp, ebp
pop ebp
ret 0x14