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

Disassembly:
sub esp, 0x7c
mov edx, dword [esp + 0x80]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 0x7fffffff
test edx, edx
je 0x10133edb
cmp dword [esp + 0x8c], eax
je 0x10133edb
cmp dword [edx + 0x20], 2
je 0x10133ee4
mov eax, 6
add esp, 0x7c
ret
mov ecx, dword [edx + 8]
push ebx
mov ebx, dword [edx + 4]
push ebp
mov ebp, dword [edx]
push esi
mov esi, dword [edx + 0x10]
push edi
mov edi, dword [edx + 0x14]
mov edx, dword [edx + 0xc]
lea eax, [esi + esi]
mov dword [esp + 0x4c], ebp
sub ecx, eax
mov dword [esp + 0x88], ebx
sub esi, ebp
mov dword [esp + 0x28], 5
add esi, esi
mov dword [esp + 0x2c], esi
lea eax, [ecx + ebp]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x64], eax
lea eax, [edi + edi]
sub edx, eax
sub edi, ebx
add edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x80], edi
lea eax, [edx + ebx]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
shl eax, 0xa
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
shl eax, 0xa
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov ebp, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
nop
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x48]
add ebx, esi
mov esi, dword [esp + 0x50]
add ebx, dword [esp + 0x4c]
add esi, edi
add esi, dword [esp + 0x88]
shl ebx, 0xa
mov eax, ebx
shl esi, 0xa
sub eax, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, esi
sub eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
call fcn.100db520
add esp, 4
cmp eax, dword [esp + 0x18]
jge 0x10134095
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
lea esi, [ebp*2]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x54], eax
mov ebp, dword [esp + 0x54]
add ebp, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
cdq
mov edi, dword [esp + 0x58]
and edx, 0x3ff
add edi, dword [esp + 0x30]
lea ebx, [edx + eax]
mov eax, dword [esp + 0x70]
cdq
and edx, 0x3ff
sar ebx, 0xa
mov dword [esp + 0x6c], ebx
lea esi, [edx + eax]
mov eax, edi
imul eax, edi
sar esi, 0xa
mov dword [esp + 0x70], esi
cdq
and edx, 0x3f
lea ecx, [edx + eax]
mov eax, ebp
imul eax, ebp
sar ecx, 6
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add ecx, eax
mov eax, ebx
imul eax, dword [esp + 0x64]
imul ebx, ebp
add eax, eax
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add ecx, eax
mov eax, esi
imul eax, dword [esp + 0x68]
imul esi, edi
add eax, eax
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add ecx, eax
mov eax, esi
cdq
and edx, 0x3f
push ecx
lea ecx, [edx + eax]
mov eax, ebx
cdq
and edx, 0x3f
sar ecx, 6
add eax, edx
sar eax, 6
add ecx, eax
push ecx
call fcn.100d6730
mov ecx, dword [esp + 0x18]
add esp, 8
sub ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, 0x10000
ja 0x101341c1
mov ebp, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x20], ebp
cmp bp, 4
mov ebp, ecx
jb 0x10133f70
mov eax, dword [esp + 0x24]
add eax, 0x4000
sub dword [esp + 0x28], 1
mov dword [esp + 0x24], eax
jne 0x10133f61
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + eax*2]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
lea eax, [ecx + eax*2]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x5c]
sub eax, ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x78]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x38]
sub eax, ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x74]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x50], eax
sub esi, dword [esp + 0x50]
mov edi, dword [esp + 0x9c]
mov eax, dword [esp + 0x18]
sets cl
mov dword [edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [ecx*2 - 1]
mov byte [edi + 8], cl
test eax, eax
je 0x101342ed
cmp eax, 0x10000
je 0x101342ed
mov dword [edi + 4], 0x10000
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
sub dword [esp + 0x5c], ebx
lea eax, [esp + 0x74]
sub dword [esp + 0x60], ebp
push eax
call fcn.100db5a0
lea eax, [esp + 0x60]
push eax
call fcn.100db5a0
add esp, 8
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x60]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x5c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x54], eax
sub esi, dword [esp + 0x54]
xor eax, eax
mov dword [edi + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret