Function at 0x10031900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eba43
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x102289dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
lea esi, [ebx + 0x1c]
mov dword [ebx + 0x10], 0x8000
mov dword [ebx + 0x14], 0x7fff
mov dword [ebx + 0x18], 5
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x68], eax
dec eax
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x74], eax
lea eax, [ebx + 0x78]
mov dword [ebx + 0x64], 0
mov dword [ebp + 0x18], eax
mov dword [eax], 0
push 0x10
mov byte [ebp - 4], 6
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.101e8bc4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x7c], eax
lea ecx, [ebx + 0x84]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push dword [ebx + 0x7c]
mov byte [ebp - 4], 8
push 0x10
mov dword [ebx + 0x90], 7
mov dword [ebx + 0x94], 8
mov dword [ebx + 0x78], 0x3f800000
call fcn.10038dd0
push dword [ebp + 0xc]
lea ecx, [ebx + 4]
mov byte [ebp - 4], 9
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0x100
call fcn.100397e0
xor edx, edx
cmp dword [ebp + 0xc], edx
jbe 0x10031ab8
mov esi, dword [ebp + 8]
add esi, 4
mov ecx, dword [ebx + 4]
lea esi, [esi + 8]
mov eax, dword [esi - 8]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x10031aa3
lea esi, [ebx + 0x1c]
mov edi, dword [esi + 4]
mov ecx, edi
mov eax, dword [esi]
sub ecx, eax
mov edx, dword [ebx + 0x10]
sar ecx, 2
mov dword [ebp + 0xc], 0xffffffff
mov dword [ebp + 0x14], edi
cmp edx, ecx
jae 0x10031add
lea eax, [eax + edx*4]
mov dword [esi + 4], eax
jmp 0x10031b39
jbe 0x10031b39
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 2
cmp edx, eax
lea eax, [ebp + 0xc]
jbe 0x10031af9
push eax
push edx
mov ecx, esi
call fcn.10030ac0
jmp 0x10031b39
mov eax, dword [eax]
sub edx, ecx
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
cmp eax, dword [ecx]
jne 0x10031b25
lea esi, [edx*4]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
lea esi, [ebx + 0x1c]
jmp 0x10031b36
test edx, edx
je 0x10031b36
mov ecx, edx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
lea edi, [edi + edx*4]
mov dword [esi + 4], edi
mov edi, dword [ebx + 0x38]
lea esi, [ebx + 0x34]
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [ebx + 0x68]
sub ecx, eax
sar ecx, 2
mov dword [ebp + 0xc], 0xffffffff
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edi
cmp edx, ecx
jae 0x10031b64
lea eax, [eax + edx*4]
mov dword [esi + 4], eax
jmp 0x10031bc1
jbe 0x10031bc1
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x10]
sar eax, 2
cmp edx, eax
lea eax, [ebp + 0xc]
jbe 0x10031b81
push eax
push edx
mov ecx, esi
call fcn.10030ac0
jmp 0x10031bc1
mov eax, dword [eax]
sub edx, ecx
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
cmp eax, dword [ecx]
jne 0x10031bad
lea esi, [edx*4]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
lea esi, [ebx + 0x34]
jmp 0x10031bbe
test edx, edx
je 0x10031bbe
mov ecx, edx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
lea edi, [edi + edx*4]
mov dword [esi + 4], edi
push dword [ebx + 0x68]
lea ecx, [ebx + 0x28]
call fcn.100397e0
mov eax, dword [ebx + 0x68]
xor edx, edx
test eax, eax
je 0x10031be3
mov eax, dword [ebx + 0x28]
mov dword [eax + edx*4], edx
inc edx
mov eax, dword [ebx + 0x68]
cmp edx, eax
jb 0x10031bd5
push eax
lea ecx, [ebx + 0x58]
call fcn.100397e0
mov edi, dword [ebx + 0x44]
lea esi, [ebx + 0x40]
mov eax, dword [esi]
mov ecx, edi
mov edx, dword [ebx + 0x68]
sub ecx, eax
inc edx
sar ecx, 2
mov dword [ebp + 0xc], 0xffffffff
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edi
cmp edx, ecx
jae 0x10031c18
lea eax, [eax + edx*4]
mov dword [esi + 4], eax
jmp 0x10031c75
jbe 0x10031c75
mov eax, dword [esi + 8]
sub eax, dword [ebp + 0x10]
sar eax, 2
cmp edx, eax
lea eax, [ebp + 0xc]
jbe 0x10031c35
push eax
push edx
mov ecx, esi
call fcn.10030ac0
jmp 0x10031c75
mov eax, dword [eax]
sub edx, ecx
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
cmp eax, dword [ecx]
jne 0x10031c61
lea esi, [edx*4]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
lea esi, [ebx + 0x40]
jmp 0x10031c72
test edx, edx
je 0x10031c72
mov ecx, edx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x14]
lea edi, [edi + edx*4]
mov dword [esi + 4], edi
push dword [ebx + 0x68]
lea ecx, [ebx + 0x4c]
call fcn.100397e0
xor ecx, ecx
cmp dword [ebx + 0x68], ecx
jbe 0x10031c93
mov eax, dword [ebx + 0x4c]
mov dword [eax + ecx*4], ecx
inc ecx
cmp ecx, dword [ebx + 0x68]
jb 0x10031c87
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x10031cf9
mov ebx, dword [ebp + 0x18]
mov esi, 0x77
lea edx, [esi - 0x76]
nop word [eax + eax]
movsx ecx, byte [esi*2 + 0x101f79a9]
movsx eax, byte [esi*2 + 0x101f79a8]
imul ecx, edi
add eax, ecx
mov ecx, ebx
cmp eax, 1
cmovl eax, edx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10031450
mov edx, 1
mov eax, dword [eax]
mov dword [eax + 0xc], esi
sub esi, 1
jns 0x10031cb0
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x98], 0x78
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18