Function at 0x10016e30
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059305
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x140
mov eax, dword [0x100d9140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xec], edi
mov eax, ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp byte [0x100de1bc], 0
jne 0x10016f29
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10016ef9
push 8
call fcn.1003509d
add esp, 4
mov dword [ebp - 0xe4], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push esi
mov ecx, eax
movq qword [eax], xmm0
call fcn.100141a0
push esi
mov dword [0x100de1c0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x100de1bc], 1
jmp 0x10016f11
mov edx, str.OpenProcess_failed.
mov ecx, 0x100dd4e8
call fcn.10022e20
push eax
call fcn.10023220
add esp, 4
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x84]
mov dword [0x100de1b8], eax
xor esi, esi
cmp edi, 0x100d0d0c
je 0x10016fe9
mov esi, dword [0x100de1c0]
xor edx, edx
mov dword [ebp - 0xf0], edx
mov eax, dword [esi]
mov dword [ebp - 0xe4], eax
test eax, eax
je 0x10016fe6
mov ecx, edi
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016f60
mov eax, dword [esi + 4]
sub ecx, edi
sar ecx, 1
add eax, 0x14
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf8], eax
cmp dword [eax + 0x14], 7
mov edi, eax
mov esi, dword [eax + 0x10]
jbe 0x10016f8e
mov edi, dword [eax]
cmp esi, ecx
jne 0x10016fce
mov eax, dword [ebp - 0xec]
mov edx, eax
test esi, esi
je 0x10016fb4
sub edi, eax
movzx ecx, word [edi + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x10016fbc
add edx, 2
sub esi, 1
jne 0x10016fa0
mov esi, dword [ebp - 0xf0]
jmp 0x10016fe9
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xf0]
inc edx
add eax, 0x2c
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xf8], eax
cmp edx, dword [ebp - 0xe4]
jb 0x10016f81
or esi, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebx + 0xc]
mov byte [ebp - 0xe5], 1
mov ecx, esp
push eax
call fcn.1001eb50
lea eax, [ebp - 0xe5]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x24]
call fcn.10015c60
add esp, 0x1c
test al, al
jne 0x10017166
mov edi, dword [ebp - 0x104]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x100170c9
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100170aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10017112
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100170f3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push edx
push ecx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebx + 0x20]
cmp ecx, 0xf
jbe 0x10017146
mov edx, dword [ebx + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001713c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034fda
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [0x100de1c0]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xe4], eax
cmp esi, dword [edx]
jb 0x10017182
xor esi, esi
xor edi, edi
jmp 0x1001718f
mov eax, dword [edx + 4]
imul ecx, esi, 0x2c
mov esi, dword [ecx + eax]
mov edi, dword [eax + ecx + 4]
sub esp, 0x18
mov dword [ebp - 0xf8], edi
lea eax, [ebx + 0xc]
mov dword [ebp - 0xf0], esi
mov ecx, esp
push eax
call fcn.1001eb50
mov ecx, str.AOB:
call fcn.100232c0
mov eax, edi
mov dword [ebp - 0x28], 0
sub eax, esi
mov dword [ebp - 0x68], 0
xor edx, edx
mov dword [ebp - 0x74], 0
div dword [0x100de1b8]
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
push 2
push eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xbc], 0
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
call fcn.1003253f
add esp, 0x20
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0xb
cmp byte [ebp - 0xe5], 0
je 0x1001729d
lea eax, [ebp - 0xe4]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x24]
call fcn.10016920
add esp, 4
mov eax, dword [0x100de1b8]
xor edx, edx
mov dword [ebp - 0xf4], edx
test eax, eax
je 0x10017699
mov edi, edx
mov ecx, dword [ebp - 0xec]
dec eax
add ecx, esi
mov dword [ebp - 0x100], edi
cmp edx, eax
xorps xmm0, xmm0
cmove ecx, dword [ebp - 0xf8]
cmp byte [ebp - 0xe5], 0
je 0x100174c1
lea eax, [ebp - 0x148]
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0xe0]
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x15]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x130], esi
call fcn.1001d7a0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
sub eax, dword [ebp - 0x24]
je 0x100173b0
push eax
lea ecx, [ebp - 0x120]
call fcn.100282a0
mov edi, dword [ebp - 0x20]
mov eax, edi
mov esi, dword [ebp - 0x24]
sub eax, esi
mov ecx, dword [ebp - 0x120]
push eax
push esi
push ecx
mov dword [ebp - 0xe4], ecx
call fcn.100368a0
sub edi, esi
add esp, 0xc
add edi, dword [ebp - 0xe4]
mov dword [ebp - 0x11c], edi
mov edi, dword [ebp - 0x100]
mov dword [ebp - 0x114], 0x100169e0
push 0xb8
mov byte [ebp - 4], 0xd
call fcn.1003509d
mov esi, eax
add esp, 4
mov dword [ebp - 0x150], esi
push 0xb8
push 0
push esi
mov byte [ebp - 4], 0x11
call fcn.10036e20
add esp, 0xc
lea eax, [ebp - 0x148]
mov ecx, esi
push eax
call fcn.1002d840
mov esi, eax
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0xa4], esi
mov byte [ebp - 0x9c], 0
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x13
call fcn.10026d60
test esi, esi
je 0x10017de4
mov byte [ebp - 0x9c], 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10c], esi
mov byte [ebp - 0x108], 1
lock inc dword [ecx]
or edi, 0x20
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x1001745f
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x10017457
mov eax, dword [ecx]
push esi
jmp 0x1001745d
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
je 0x10017479
xor ecx, ecx
mov dword [eax], esi
mov byte [eax + 4], 1
add dword [ebp - 0x2c], 8
jmp 0x1001748f
lea ecx, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10029a00
mov ecx, dword [ebp - 0x10c]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x1001766d
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1001766d
mov edx, dword [ecx + 0x80]
test edx, edx
je 0x10017667
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x1001766b
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x130]
lea eax, [ebp - 0xe0]
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x15]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x140], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x134], esi
call fcn.1001d7a0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
sub eax, dword [ebp - 0x24]
je 0x10017598
push eax
lea ecx, [ebp - 0x120]
call fcn.100282a0
mov edi, dword [ebp - 0x20]
mov eax, edi
mov esi, dword [ebp - 0x24]
sub eax, esi
mov ecx, dword [ebp - 0x120]
push eax
push esi
push ecx
mov dword [ebp - 0xe4], ecx
call fcn.100368a0
sub edi, esi
add esp, 0xc
add edi, dword [ebp - 0xe4]
mov dword [ebp - 0x11c], edi
mov edi, dword [ebp - 0x100]
mov dword [ebp - 0x114], 0x10016560
push 0xb8
mov byte [ebp - 4], 0x16
call fcn.1003509d
mov esi, eax
add esp, 4
mov dword [ebp - 0xfc], esi
push 0xb8
push 0
push esi
mov byte [ebp - 4], 0x1a
call fcn.10036e20
add esp, 0xc
lea eax, [ebp - 0x14c]
mov ecx, esi
push eax
call fcn.1002d9e0
mov esi, eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x1c
call fcn.10026e70
test esi, esi
je 0x10017de4
mov byte [ebp - 0x78], 1
lea ecx, [esi + 4]
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x6c], 1
lock inc dword [ecx]
or edi, 0x40
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x10017635
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x1001762d
mov eax, dword [ecx]
push esi
jmp 0x10017633
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
je 0x10017652
xor ecx, ecx
mov dword [eax], esi
mov byte [eax + 4], 1
add dword [ebp - 0x2c], 8
jmp 0x1001748f
lea ecx, [ebp - 0x70]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10029a00
mov ecx, dword [ebp - 0x70]
jmp 0x1001748f
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0xf4]
mov esi, dword [ebp - 0xf0]
inc edx
add esi, dword [ebp - 0xec]
mov eax, dword [0x100de1b8]
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xf0], esi
cmp edx, eax
jb 0x100172b4
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0xf0], eax
cmp edi, eax
je 0x10017831
mov esi, dword [edi]
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
mov dword [edi], 0
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x6c], 1
mov byte [ebp - 4], 0x1f
test esi, esi
je 0x10017de4
cmp byte [esi + 0x74], 0
jne 0x10017de4
mov eax, dword [esi]
mov ecx, esi
push 1
mov eax, dword [eax + 8]
call eax
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0xf4], ecx
mov ecx, dword [eax]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, ecx
mov dword [ebp - 0xec], ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x110], eax
or eax, 0xffffffff
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], ecx
lock xadd dword [esi + 4], eax
jne 0x10017776
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x1001776e
mov eax, dword [ecx]
push esi
jmp 0x10017774
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x50]
je 0x100177ac
mov esi, dword [ebp - 0xec]
xor eax, eax
mov dword [edx], esi
xor ecx, ecx
mov esi, dword [ebp - 0xe4]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0xf4]
mov dword [edx + 8], esi
add dword [ebp - 0x54], 0xc
mov dword [ebp - 0x10c], eax
jmp 0x100177c8
lea eax, [ebp - 0x110]
push eax
push edx
lea ecx, [ebp - 0x58]
call fcn.10029bd0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x110]
mov byte [ebp - 4], 0x1e
test ecx, ecx
je 0x10017822
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x100177fa
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push edx
push ecx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
add edi, 8
cmp edi, dword [ebp - 0xf0]
jne 0x100176d5
sub esp, 0xc
mov dword [ebp - 0x5c], 0
mov eax, esp
xorps xmm0, xmm0
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0xec], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x54]
sub ecx, dword [ebp - 0x58]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10017944
cmp eax, 0x15555555
ja 0x10017dee
lea edi, [eax + eax*2]
shl edi, 2
cmp edi, 0x1000
jb 0x100178bb
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10017df3
push eax
call fcn.1003509d
add esp, 4
test eax, eax
je 0x10017ddf
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x100178ce
test edi, edi
je 0x100178cc
push edi
call fcn.1003509d
add esp, 4
mov esi, eax
jmp 0x100178ce
xor esi, esi
mov ecx, dword [ebp - 0xec]
lea eax, [edi + esi]
mov dword [ebp - 0xfc], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 0x22
mov edi, dword [ebp - 0x58]
cmp edi, eax
je 0x1001792a
push edi
mov ecx, esi
call fcn.1001d7a0
add esi, 0xc
add edi, 0xc
mov dword [ebp - 0x7c], esi
cmp edi, dword [ebp - 0xe4]
jne 0x10017911
push ecx
mov edx, esi
mov ecx, esi
call fcn.100261e0
mov eax, dword [ebp - 0xec]
add esp, 4
mov byte [ebp - 4], 0x1e
mov dword [eax + 4], esi
lea ecx, [ebp - 0x64]
call fcn.10016d50
add esp, 0xc
mov byte [ebp - 4], 0x23
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
cmp esi, ecx
jne 0x10017c05
mov edx, dword [ebp - 0xf8]
sub esp, 0x18
mov esi, dword [ebp - 0x68]
mov ecx, esp
call fcn.10023c70
push esi
mov edx, str.__num_regions_checked:
call fcn.10023dc0
mov ecx, dword [ebx + 0x1c]
mov eax, 0x7fffffff
sub eax, ecx
add esp, 0x1c
cmp eax, 0x10
jb 0x10017df8
cmp dword [ebx + 0x20], 0xf
lea eax, [ebx + 0xc]
push ecx
cmova eax, dword [ebx + 0xc]
push eax
push 0x10
push str.AOB_not_found___
push ecx
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x8c]
call fcn.100286b0
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x8c]
mov esi, dword [ebp - 0x78]
mov eax, esi
mov edx, dword [ebp - 0x7c]
sub eax, edx
cmp eax, 1
jb 0x100179f9
cmp esi, 0xf
lea eax, [edx + 1]
mov dword [ebp - 0x7c], eax
cmova ecx, dword [ebp - 0x8c]
mov al, byte [0x100cbba8]
mov byte [ecx + edx], al
lea eax, [ebp - 0x8c]
mov byte [ecx + edx + 1], 0
jmp 0x10017a0d
push 1
push 0x100cbba8
push dword [ebp - 0xfc]
push 1
call fcn.10026800
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x26
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
jbe 0x10017a70
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017a66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017dfd
push ecx
push edx
call fcn.100353ec
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x78], 0xf
mov ecx, esp
mov byte [ebp - 0x8c], 0
push eax
call fcn.1001eb50
call fcn.10024050
mov edi, dword [ebp - 0x104]
add esp, 0x18
mov ecx, dword [ebp - 0x9c]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp ecx, 0xf
jbe 0x10017af2
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017ae8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x10017b3e
mov ecx, dword [ebp - 0x5c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10017b1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x58]
call fcn.10020240
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x10017b92
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10017b73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0xe0]
push eax
call fcn.1001e240
mov ecx, dword [ebp - 0x30]
add esp, 4
test ecx, ecx
je 0x1001707d
mov edx, dword [ebp - 0x2c]
push ecx
call fcn.10026190
mov ecx, dword [ebp - 0x28]
add esp, 4
mov edx, dword [ebp - 0x30]
sub ecx, edx
and ecx, 0xfffffff8
mov eax, edx
cmp ecx, 0x1000
jb 0x10017be1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
jmp 0x1001707d
mov edi, dword [ebp - 0x104]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x64], 0
mov dword [edi], esi
mov dword [edi + 8], eax
call fcn.10020240
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x10017c7f
mov ecx, dword [ebp - 0x44]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10017c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0xe0]
push eax
call fcn.1001e240
mov esi, dword [ebp - 0x30]
add esp, 4
test esi, esi
je 0x10017d1c
mov edi, dword [ebp - 0x2c]
cmp esi, edi
je 0x10017cd1
mov ecx, dword [esi]
test ecx, ecx
je 0x10017cc7
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x10017cc7
mov edx, dword [ecx + 0x80]
test edx, edx
je 0x10017cc1
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x10017cc5
mov eax, dword [ecx]
push 1
call dword [eax]
add esi, 8
cmp esi, edi
jne 0x10017ca0
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10017cf7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push esi
call fcn.100353ec
mov edi, dword [ebp - 0x104]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x10017d68
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10017d49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push ecx
push edx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10017dad
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10017d8e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017ddf
push edx
push ecx
call fcn.100353ec
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebx + 0x20]
cmp ecx, 0xf
jbe 0x10017146
mov edx, dword [ebx + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001713c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001713c
call fcn.10039fdf
mov ecx, 4
call fcn.100108f0
call fcn.100046f0
call fcn.10001480
call fcn.1000d380
call fcn.10039fdf
int3