Function at 0x10107240
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x148], eax
cmp byte [ebp + 0x1c], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov edx, dword [eax + 0x5c]
push edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], edx
je 0x101072b1
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x14], 0
mov esi, dword [esi + 8]
lea eax, [esi + 8]
neg esi
sbb esi, esi
xor ecx, ecx
and esi, eax
cmp edx, 2
mov eax, 0x80000
setne cl
xor edx, edx
lea ecx, [ecx*2 + 2]
div ecx
mov edx, eax
mov dword [esp + 0x34], edx
jmp 0x101072e8
mov eax, dword [ebx + 0x34]
xor ecx, ecx
mov esi, dword [eax + 8]
test esi, esi
je 0x101072c6
add esi, 8
mov dword [esp + 0x14], ecx
jmp 0x101072cc
xor esi, esi
mov dword [esp + 0x14], esi
cmp edx, 2
mov eax, 0x100000
setne cl
xor edx, edx
lea ecx, [ecx*2 + 2]
div ecx
mov edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
dec ecx
mov edi, dword [ebp + 0x14]
mov eax, dword [eax + 0x7a68]
mov dword [esp + 0x54], 0x80808080
mov dword [esp + 0xc], edi
mov eax, dword [eax + 0x2dac]
add ecx, eax
neg eax
and ecx, eax
mov eax, edx
xor edx, edx
mov dword [esp + 0x38], ecx
div ecx
mov edx, dword [0x11d0c5b8]
mov ecx, dword fs:[0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + edx*4]
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0x7a68]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0xb50]
mov eax, dword [edx + 0xb4c]
mov dword [edx + ecx*4 + 0xb54], eax
inc dword [edx + 0xb50]
mov eax, dword [esp + 0x50]
cmp eax, 4
jne 0x10107c2d
mov eax, dword [ebx + 0x3c]
test dword [eax + 0x162c], 0x800
jne 0x101080c4
test edi, edi
je 0x101080c4
mov cl, byte [ebp + 0x1c]
xor eax, eax
test cl, cl
mov edx, 0x230adcdc
cmovne eax, edx
mov edx, 0x10adcdc
mov dword [esp + 0x44], eax
xor eax, eax
test cl, cl
cmovne eax, edx
mov dword [esp + 0x3c], eax
nop dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
push 1
push 1
mov dword [esp + 0x20], esi
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff3f
or eax, 0x30
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0xe8]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x14]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
mov dword [ecx + 0xb4c], 8
mov ecx, dword [ecx + 0x76c]
or ecx, 0x1000
shl ecx, 4
cmp dword [esp + 0x48], edx
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], ecx
mov eax, edx
cmovb eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x38]
imul eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x18c]
mov edx, dword [eax + 8]
test edx, edx
je 0x10107541
test byte [edx + 0xb8], 0x20
je 0x10107541
mov eax, dword [esp + 0x14]
xor edx, edx
movzx ecx, byte [edi + 0x61]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xb4], eax
mov eax, esi
div ecx
push dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xbc]
push 0
push eax
push 0
mov dword [esp + 0xc8], 0
call fcn.1005dde0
imul esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x18]
jmp 0x10107583
mov eax, dword [esp + 0x10]
imul eax, dword [ebp + 0x10]
push dword [esp + 0x44]
mov edi, dword [esp + 0x18]
imul edi, dword [ebp + 0x10]
push eax
push dword [esp + 0x34]
lea eax, [edx + 8]
neg edx
push edi
sbb edx, edx
mov dword [esp + 0x50], edi
and edx, eax
mov dword [esp + 0x38], edx
mov edx, esi
mov ecx, dword [esp + 0x38]
call fcn.1005d7e0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff3
or eax, 0xf3
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0xe8]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff2f
or eax, 0x20
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0xa0]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xb4c], 4
mov ecx, dword [ecx + 0x75c]
or ecx, 0x1000
shl ecx, 4
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x20], ecx
mov edi, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
imul edi, dword [esp + 0x34]
mov ecx, dword [eax + 0x7a68]
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ebx, eax
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x98], 0
movzx ecx, byte [eax + 0x61]
mov eax, dword [ebp + 0x10]
div ecx
mov edx, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x38]
push edx
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
push 0
push dword [esp + 0x34]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x9c], 0x80808080
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov ebx, dword [esp + 0x4c]
push 1
push 1
mov eax, dword [ebx + 0x38]
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff2
or eax, 0xf2
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0xa0]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
xor edx, edx
inc eax
div dword [esp + 0x1c]
push 1
mov dword [ebx + 0x38], edx
push 1
lea eax, [edx + edx*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff1f
or eax, 0x10
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0x58]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov dword [ecx + 0xb4c], 2
mov ecx, dword [ecx + 0x754]
or ecx, 0x1000
shl ecx, 4
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x20], ecx
mov eax, dword [ebx + 0x38]
imul eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x18c]
mov edx, dword [eax + 8]
test edx, edx
je 0x10107949
test byte [edx + 0xb8], 0x20
je 0x10107949
mov eax, dword [esp + 0x14]
xor edx, edx
movzx ecx, byte [edi + 0x61]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x10]
div ecx
push dword [esp + 0x3c]
mov dword [esp + 0x68], eax
mov edx, esi
push dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x34]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push 0
push eax
push 0
mov dword [esp + 0x74], 0
call fcn.1005dde0
jmp 0x1010797e
mov eax, dword [esp + 0x10]
imul eax, dword [ebp + 0x10]
push dword [esp + 0x3c]
push eax
push dword [esp + 0x34]
lea eax, [edx + 8]
neg edx
push dword [esp + 0x4c]
sbb edx, edx
and edx, eax
mov dword [esp + 0x38], edx
mov edx, esi
mov ecx, dword [esp + 0x38]
call fcn.1005d7e0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff1
or eax, 0xf1
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0x58]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
and dword [ebx + eax*4 + 8], 0xffffff0f
lea edi, [ebx + eax*4]
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xb4c], 1
mov ecx, dword [ecx + 0x750]
or ecx, 0x1000
shl ecx, 4
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x20], ecx
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
imul edi, dword [esp + 0x34]
mov ecx, dword [eax + 0x7a68]
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ebx, eax
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x98], 0
movzx ecx, byte [eax + 0x61]
mov eax, dword [ebp + 0x10]
div ecx
mov edx, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x38]
push edx
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
push 0
push dword [esp + 0x34]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x9c], 0x80808080
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov ebx, dword [esp + 0x4c]
push 1
push 1
mov eax, dword [ebx + 0x38]
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff0
or eax, 0xf0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0x10]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
xor edx, edx
inc eax
div dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x38], edx
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
xor eax, eax
cmp edx, dword [esp + 0x48]
cmovae eax, ecx
mov dword [esp + 0xc], eax
test eax, eax
jne 0x101073b0
jmp 0x101080c4
cmp eax, 3
jne 0x101080c4
test edi, edi
je 0x101080bc
xor ecx, ecx
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x10], ecx
cmp byte [ebp + 0x1c], al
mov ecx, 0x120adcdc
cmovne eax, ecx
mov dword [esp + 0x40], eax
nop dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
push 1
push 1
mov dword [esp + 0x30], esi
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff2f
or eax, 0x20
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0xa0]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [ecx + 0xb4c], 4
mov ecx, dword [ecx + 0x75c]
or ecx, 0x1000
shl ecx, 4
cmp dword [esp + 0x48], edx
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x20], ecx
mov ecx, edx
cmovb ecx, dword [esp + 0x48]
mov eax, dword [ebx + 0x38]
imul eax, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x18c]
mov edx, dword [eax + 8]
test edx, edx
je 0x10107dcc
test byte [edx + 0xb8], 0x20
je 0x10107dcc
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x60], eax
push dword [esp + 0x40]
mov dword [esp + 0x60], 0
lea esi, [eax + ecx]
movzx ecx, byte [edi + 0x61]
mov eax, dword [ebp + 0x10]
div ecx
push dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov ecx, edi
push dword [esp + 0x44]
lea eax, [esp + 0x68]
mov dword [esp + 0x74], esi
push 0
push eax
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x3c]
mov edx, esi
push 0
call fcn.1005dde0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
jmp 0x10107e05
mov edi, dword [esp + 0x10]
push dword [esp + 0x40]
lea eax, [edi + ecx]
mov dword [esp + 0x30], eax
mov eax, ecx
imul eax, dword [ebp + 0x10]
push eax
push dword [esp + 0x44]
mov eax, edi
imul eax, dword [ebp + 0x10]
push eax
lea eax, [edx + 8]
neg edx
sbb edx, edx
and edx, eax
mov dword [esp + 0x38], edx
mov edx, esi
mov ecx, dword [esp + 0x38]
call fcn.1005d7e0
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff2
or eax, 0xf2
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0xa0]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff1f
or eax, 0x10
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0x58]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0xb4c], 2
mov ecx, dword [ecx + 0x754]
or ecx, 0x1000
shl ecx, 4
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x20], ecx
mov edi, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
imul edi, dword [esp + 0x34]
mov ecx, dword [eax + 0x7a68]
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ebx, eax
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x98], 0
movzx ecx, byte [eax + 0x61]
mov eax, dword [ebp + 0x10]
div ecx
mov edx, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x38]
push edx
push ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x18]
push ecx
push 0
push dword [esp + 0x34]
mov dword [esp + 0xa0], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x9c], 0x80808080
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov ebx, dword [esp + 0x4c]
push 1
push 1
mov eax, dword [ebx + 0x38]
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff1
or eax, 0xf1
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 0x58]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
xor edx, edx
inc eax
div dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x38], edx
mov edx, dword [esp + 0x20]
mov ecx, edx
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
xor eax, eax
cmp edx, dword [esp + 0x48]
cmovae eax, ecx
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10107c60
mov dword [esp + 0x54], 0xaaaaaaaa
mov edx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x30]
mov ecx, dword [edx + 0x162c]
mov edi, dword [eax + 0x10]
and ecx, 0x800
je 0x1010811e
cmp dword [edi + 0xf940], 2
jne 0x1010811e
mov ecx, dword [edx + 0xf93c]
mov eax, dword [edx + 0xf880]
and ecx, 0xf
mov edx, dword [edx + 0xf884]
shl ecx, 3
call fcn.10451430
mov ecx, dword [ebx + 0x3c]
and eax, dword [ecx + 0xf888]
movzx eax, al
mov eax, dword [eax*4 + 0x11225dc8]
mov dword [esp + 0x14], eax
jmp 0x10108128
xor eax, eax
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x1010813e
mov edx, eax
xor edx, 1
cmp dword [edi + 0xf940], 2
mov edi, 1
cmovne edx, edi
jmp 0x10108152
xor edx, edx
cmp dword [esp + 0x50], 4
sete dl
inc edx
xor eax, eax
mov dword [esp + 0x14], eax
lea edi, [eax + 1]
cmp dword [ebp + 0x14], 0
je 0x10108670
xor ecx, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov ecx, edx
and ecx, 0xf
mov dword [esp + 0x3c], ecx
shl ecx, 4
mov dword [esp + 0x9c], ecx
mov ecx, edx
shl dword [esp + 0xc], cl
lea ecx, [edx + edx*8]
shl ecx, 3
mov dword [esp + 0x2c], ecx
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0xac], ecx
shl ecx, 4
mov dword [esp + 0xa4], ecx
mov ecx, eax
shl edi, cl
lea eax, [eax + eax*8]
shl eax, 3
mov dword [esp + 0xa8], edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
push 1
push 1
mov dword [esp + 0xa8], esi
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff0f
or eax, dword [esp + 0xa4]
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + edx + 0x10]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x24]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xb4c], edx
mov ecx, dword [ecx + edx*4 + 0x74c]
or ecx, 0x1000
shl ecx, 4
cmp byte [ebp + 0x1c], 0
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
je 0x101082b7
mov ecx, dword [esp + 0x14]
shl ecx, 4
or ecx, dword [esp + 0x3c]
shl ecx, 0x18
or ecx, 0xadcdc
jmp 0x101082b9
xor ecx, ecx
mov edi, dword [ebp + 0x14]
mov edx, edi
cmp dword [esp + 0x48], edi
mov eax, dword [ebx + 0x38]
cmovb edx, dword [esp + 0x48]
imul eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x18c]
mov edx, dword [eax + 8]
test edx, edx
je 0x10108359
test byte [edx + 0xb8], 0x20
je 0x10108359
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
add esi, ecx
mov dword [esp + 0x60], ecx
movzx ecx, byte [edi + 0x61]
div ecx
push dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov ecx, edi
push dword [esp + 0x3c]
lea eax, [esp + 0x64]
mov dword [esp + 0x70], esi
push dword [esp + 0x48]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xac]
mov edx, esi
push 0
push eax
push 0
mov dword [esp + 0x74], 0
call fcn.1005dde0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
jmp 0x1010839d
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push ecx
lea ebx, [eax + edi]
imul eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], ebx
push eax
push dword [esp + 0x48]
mov eax, edi
imul eax, dword [ebp + 0x10]
push eax
lea eax, [edx + 8]
neg edx
sbb edx, edx
and edx, eax
mov dword [esp + 0x68], edx
mov edx, esi
mov ecx, dword [esp + 0x68]
call fcn.1005d7e0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff0
or eax, dword [esp + 0x44]
or eax, 0xf0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + edx + 0x10]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov eax, dword [ebx + 0x38]
push 1
push 1
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xffffff0f
or eax, dword [esp + 0xac]
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x7c
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [esp + 0x44]
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + edx + 0x10]
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d2250
mov ecx, dword [esp + 0x30]
push 1
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x24]
mov eax, dword [eax + 0x7a68]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
call fcn.1001e7f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xa8]
mov dword [ecx + 0xb4c], edx
mov ecx, dword [ecx + edx*4 + 0x74c]
or ecx, 0x1000
shl ecx, 4
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
imul edi, dword [esp + 0x34]
mov ecx, dword [eax + 0x7a68]
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ebx, eax
mov dword [esp + 0x6c], esi
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x98], 0
movzx ecx, byte [eax + 0x61]
mov eax, dword [ebp + 0x10]
div ecx
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x38]
push edx
push ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x98], eax
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x60]
push 0
push dword [esp + 0x34]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x9c], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov ebx, dword [esp + 0x4c]
push 1
push 1
mov eax, dword [ebx + 0x38]
lea eax, [eax + eax*2]
lea edi, [ebx + eax*4]
mov eax, dword [edi + 8]
and eax, 0xfffffff0
or eax, dword [esp + 0xb4]
or eax, 0xf0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x7a68]
mov ecx, dword [ecx + 8]
call fcn.101e43f0
push 0x80
lea eax, [esp + 0xd0]
push 0
push eax
call fcn.10425c00
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [esp + 0x44]
mov eax, dword [ecx + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + edx + 0x10]
and dword [esp + 0x148], 0xfffffffe
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 0xc4], 1
mov ecx, dword [ecx + 0xbe2c]
push eax
call fcn.101d23b0
mov edi, dword [ebp + 0x14]
mov ecx, edi
mov eax, dword [esp + 0x28]
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
xor eax, eax
cmp edi, dword [esp + 0x48]
cmovae eax, ecx
xor edx, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x38]
inc eax
div dword [esp + 0x1c]
cmp dword [ebp + 0x14], 0
mov dword [ebx + 0x38], edx
jne 0x101081b4
mov eax, dword [esp + 0x30]
push 1
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x7a68]
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
dec dword [ecx + 0xb50]
mov eax, dword [ecx + 0xb50]
mov esi, dword [ecx + eax*4 + 0xb54]
lea ecx, [esp + 0x10]
call fcn.1001e7f0
mov ecx, dword [esp + 0xc]
cmp esi, 0xffffffff
jne 0x101086bc
mov dword [ecx + 0xb4c], esi
mov dword [eax], 0x1fff0
jmp 0x101086d4
mov dword [ecx + 0xb4c], esi
mov ecx, dword [ecx + esi*4 + 0x74c]
or ecx, 0x1000
shl ecx, 4
mov dword [eax], ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x18