Function at 0x10031320
Capabilities:
Access peb ldr_data

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 0x100bda91
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100fb03c]
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, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebx + 8]
xor ecx, ecx
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x30], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x50], eax
xor eax, eax
mov word [edi], ax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], cx
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], cx
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], 7
mov word [edi + 0x48], cx
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], 7
mov word [edi + 0x60], cx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 1
call fcn.100231b0
push 0xb
push str.Statistics
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10004ae0
mov dword [ebp - 0x38], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 3
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x10031461
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031457
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031662
push edx
push ecx
call fcn.1008854e
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x54], 7
call fcn.1000b1f0
add esp, 4
test al, al
jne 0x10031491
lea eax, [ebp - 0x48]
push eax
call fcn.1000ba80
add esp, 4
lea eax, [ebp - 0x48]
cmp edi, eax
je 0x100314c7
mov ecx, edi
call fcn.10004840
movups xmm0, xmmword [ebp - 0x48]
mov eax, 7
xor ecx, ecx
mov word [ebp - 0x48], cx
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
jmp 0x100314ca
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x10031505
mov ecx, dword [ebp - 0x48]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100314fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031667
push edx
push ecx
call fcn.1008854e
add esp, 8
mov eax, dword [ebp - 0x4c]
lea ecx, [edi + 0x18]
cmp ecx, eax
je 0x10031522
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x10031519
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.100049a0
lea ecx, [edi + 0x30]
cmp ecx, esi
je 0x1003153c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10031533
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.100049a0
push str._Service
push dword [ebp - 0x50]
lea eax, [ebp - 0x68]
push eax
call fcn.10004cf0
mov esi, eax
lea ecx, [edi + 0x48]
add esp, 0xc
cmp ecx, esi
je 0x10031582
call fcn.10004840
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi + 0x48], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x58], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x100315bc
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100315b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003166c
push edx
push ecx
call fcn.1008854e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push 0x2886
push eax
push 2
push 2
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push str._d._d._d._d
push eax
call fcn.1000ebf0
lea eax, [ebp - 0x2c]
add esp, 0x18
lea ecx, [edi + 0x60]
cmp ecx, eax
je 0x1003160a
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.100049a0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10031640
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10031671
push edx
push ecx
call fcn.1008854e
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.100881a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.1008db97
call fcn.1008db97
call fcn.1008db97
call fcn.1008db97
int3