Function at 0x106b388
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov edx, dword [ebp + 0x20]
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov ecx, edx
push 9
pop esi
sub esi, dword [ebp + 0x48]
cmp dword [ebp + 0x48], 9
cmova esi, eax
inc eax
sub ecx, esi
shl eax, cl
cmp esi, 9
sbb ecx, ecx
xor edi, edi
and ecx, eax
inc edi
mov eax, dword [ebx + 0xb8]
mov dword [ebp - 0x28], ecx
lea ecx, [edx + 2]
shl edi, cl
xor edx, edx
mov dword [ebp + 0x48], eax
mov ecx, edi
shl ecx, 2
imul ecx, eax
mov eax, dword [ebp + 0x18]
div ecx
xor edx, edx
lea esi, [eax + 1]
mov eax, dword [ebp + 0x18]
div edi
mov edi, dword [ebp + 0x48]
mov ecx, esi
imul ecx, dword [ebp + 0x48]
inc eax
cmp eax, edi
cmovb edi, eax
cmp esi, 1
mov esi, dword [ebp + 0x18]
cmova edi, ecx
xor edx, edx
push esi
mov dword [ebp + 0x48], edi
lea eax, [esi - 1]
add eax, edi
div edi
mov edx, eax
and edx, 0x1ffff
cmp edx, 0x7fff
lea ecx, [eax + 0xffff]
cmovb eax, ecx
mov dword [ebp - 0x10], eax
call fcn.0107a808
mov esi, dword [ebp - 0x10]
pop ecx
cmp dword [ebp + 0x10], eax
jb 0x106b436
mov dword [ebp - 0x1c], edi
jmp 0x106b449
push esi
call fcn.0107a808
pop ecx
mov ecx, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
div ecx
mov dword [ebp - 0x1c], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
cmp edi, 1
jne 0x106b4b2
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
cmp dword [ebp + 0x1c], edx
je 0x106b489
sub esp, 0xc
lea esi, [ebp + 0x3c]
mov edi, esp
push dword [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push eax
call fcn.0106e8b4
add esp, 0x24
jmp 0x106b7ce
sub esp, 0x28
lea esi, [ebp + 0x20]
push 0xa
pop ecx
mov edi, esp
push edx
push edx
push dword [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.01075a44
add esp, 0x44
jmp 0x106b7ce
push esi
call fcn.0107a808
mov ecx, dword [ebx + 8]
push 0
push 0
mov dword [ecx + 4], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00bfec34
mov eax, dword [ebx + 0xbc]
add esp, 0x10
inc eax
cmp edi, eax
jbe 0x106b534
mov dword [ebp - 4], edi
lea esi, [ebx + 0xe4]
sub esp, 0xc
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
push dword [esi + 4]
call fcn.00bfea08
and dword [esi + 0xbc], 0
lea eax, [ebp - 4]
add esp, 4
lea esi, [ebx + 0xe4]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0106a094
add esp, 0x10
mov dword [ebx + 4], eax
test eax, eax
jne 0x106b527
push 0xffffffffffffffc0
pop eax
jmp 0x106b7ce
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0x48]
dec eax
mov dword [ebx + 0xbc], eax
and dword [ebp - 0x18], 0
xor esi, esi
test edi, edi
je 0x106b78a
mov eax, dword [ebp + 0x18]
lea ecx, [edi - 1]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
cmovb ecx, eax
push ecx
mov dword [ebp - 8], ecx
call fcn.0107a808
mov edx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [0xc05aec]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jae 0x106b584
mov dword [ebp - 0x24], edx
jmp 0x106b58f
mov eax, dword [0xc05ae8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx + 4]
xor edx, edx
test edi, edi
mov edi, dword [0xc05ae8]
push 0xa
cmovne edx, dword [ebp - 0x28]
mov dword [esi + eax], edi
mov dword [esi + eax + 4], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0xc]
sub ecx, edx
add ecx, dword [ebp + 0x14]
mov dword [esi + eax + 8], ecx
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dword [esi + eax + 0xc], edx
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 8]
mov dword [esi + eax + 0x10], edx
cmp dword [ebx + 0xc4], ecx
mov eax, dword [ebx + 4]
cmove ecx, dword [ebp + 0x1c]
mov dword [esi + eax + 0x64], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + eax + 0x70], ecx
and dword [esi + eax + 0x74], 0
add esi, 0x3c
mov edi, dword [ebx + 4]
add edi, esi
lea esi, [ebp + 0x20]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
test edi, edi
je 0x106b60b
mov eax, dword [ebx + 4]
and dword [esi + eax + 0x5c], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x20]
mov dword [esi + eax + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + eax + 0x18], ecx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov dword [esi + ecx + 0x68], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esi + ecx + 0x6c], eax
xor ecx, ecx
mov eax, dword [ebx + 4]
test edi, edi
sete cl
mov dword [esi + eax + 0x24], ecx
xor ecx, ecx
mov eax, dword [ebx + 4]
cmp edi, dword [ebp - 0x30]
sete cl
mov dword [esi + eax + 0x28], ecx
lea ecx, [ebx + 0x10]
mov eax, dword [ebx + 4]
and dword [esi + eax + 0x2c], 0
cmp dword [ebp + 0x40], 0
mov eax, dword [ebx + 4]
mov dword [esi + eax + 0x34], ecx
lea ecx, [ebx + 0x14]
mov eax, dword [ebx + 4]
mov dword [esi + eax + 0x38], ecx
je 0x106b686
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x14]
push edx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0106f350
add esp, 0xc
mov eax, dword [ebx + 4]
add eax, esi
push eax
push 0x106d688
push dword [ebx]
call fcn.01071748
mov eax, dword [ebp - 0x34]
add esp, 0xc
add dword [ebp - 0x14], eax
add esi, 0x78
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
sub eax, ecx
add dword [ebp - 0xc], ecx
inc edi
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], esi
cmp edi, dword [ebp + 0x48]
jb 0x106b554
xor esi, esi
xor edi, edi
and dword [ebp + 0x14], esi
xor ecx, ecx
mov dword [ebp + 0x18], ecx
mov eax, dword [ebx + 4]
cmp dword [ecx + eax + 0x2c], 0
je 0x106b6ce
and dword [ecx + eax + 8], 0
mov eax, dword [ebx + 4]
mov eax, dword [ecx + eax + 0x1c]
push eax
mov dword [ebp - 8], eax
call fcn.01073688
test eax, eax
pop ecx
mov ecx, dword [ebp - 8]
cmovne esi, ecx
test esi, esi
jne 0x106b706
lea eax, [ecx + edi]
cmp eax, dword [ebp + 0x10]
push 0xffffffffffffffba
pop eax
cmova esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x106b76f
test esi, esi
jne 0x106b72d
mov eax, dword [ebx + 4]
push ecx
mov ecx, dword [ebp + 0x18]
push dword [ecx + eax + 0x14]
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.01078bf8
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, dword [ebp - 0x1c]
jb 0x106b74b
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x18]
push dword [ecx + eax + 0x18]
push dword [ecx + eax + 0x14]
push dword [ebx + 8]
call fcn.0106f8b4
add esp, 0xc
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [0xc05ae8]
mov edx, dword [0xc05aec]
mov dword [ebx + eax + 0x14], ecx
mov ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ecx + eax + 0x18], edx
mov eax, dword [ebp + 0x14]
jmp 0x106b772
mov ecx, dword [ebp + 0x18]
add edi, dword [ebp - 8]
add ecx, 0x78
inc eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x48]
jb 0x106b6ce
jmp 0x106b78c
xor edi, edi
cmp dword [ebp + 0x40], 0
je 0x106b7c7
lea eax, [ebp - 0x8c]
push eax
call fcn.01068ee0
lea ebx, [edi + 4]
pop ecx
cmp ebx, dword [ebp + 0x10]
jbe 0x106b7ae
push 0xffffffffffffffba
pop eax
mov esi, eax
jmp 0x106b7c7
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x18]
push 4
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.00c03ec0
add esp, 0xc
mov edi, ebx
test esi, esi
cmovne edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret