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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x94
cmp eax, 0x14
jge 0x10081175
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add eax, eax
add eax, eax
push eax
push ecx
push edx
call fcn.10064ea0
add esp, 0xc
add esp, 0x94
ret 0xc
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0xa4]
push esi
push edi
mov ecx, 0x10
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, 0x40
push esi
lea eax, [esp + 0x28]
push 0
push eax
call fcn.10064e10
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
mov ecx, edx
sub ecx, eax
add ecx, ecx
mov dword [esp + 0x94], ecx
mov ecx, dword [ebx + 0x34]
sub ecx, eax
mov dword [esp + 0x80], edx
lea edx, [edx + ecx*8]
mov ecx, dword [ebx + 0x3c]
lea eax, [ebx + 0x40]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov esi, dword [eax - 8]
add ecx, ecx
add esp, 0xc
sub ecx, esi
mov dword [esp + 0x7c], edx
lea edx, [ebp + 0x40]
mov dword [esp + 0x94], ecx
mov ecx, dword [edx - 4]
mov dword [esp + 0x84], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x1c], 0x73
mov dword [esp + 0x14], 0x2e4
mov dword [esp + 0x10], 0
lea ecx, [ebp + 8]
mov esi, 3
mov edi, dword [ecx - 8]
add dword [ecx - 4], edi
mov edi, dword [ecx - 4]
add dword [ecx], edi
mov edi, dword [ecx]
add dword [ecx + 4], edi
mov edi, dword [ecx + 4]
add dword [ecx + 8], edi
mov edi, dword [ecx + 8]
add dword [ecx + 0xc], edi
add ecx, 0x14
sub esi, 1
jne 0x10081221
mov ecx, dword [esp + 0xb0]
lea ecx, [ebp + ecx*4]
mov dword [esp + 0x9c], ecx
cmp edx, ecx
jae 0x100816e1
mov ecx, eax
sub ecx, ebx
add ecx, ebp
sub ebp, ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa0], ebp
mov ebx, dword [eax - 0x28]
mov edi, dword [eax - 0x30]
mov edx, dword [eax - 0x2c]
imul edx, dword [esp + 0x4c]
mov dword [esp + 0x68], ebx
mov esi, dword [eax - 0x38]
mov ebx, edi
imul ebx, dword [esp + 0x50]
add edx, ebx
mov ebx, dword [eax - 0x34]
imul ebx, dword [esp + 0x54]
add edx, ebx
mov ecx, dword [eax]
mov ebx, esi
imul ebx, dword [esp + 0x58]
add edx, ebx
mov ebx, dword [eax - 0x3c]
imul ebx, dword [esp + 0x5c]
add edx, ebx
dec ecx
mov dword [esp + 0x90], ecx
mov ecx, dword [eax - 0x40]
mov ebx, ecx
imul ebx, dword [esp + 0x60]
add edx, ebx
mov ebx, dword [esp + 0x44]
imul ebx, dword [eax - 0x24]
add edx, ebx
mov ebx, dword [esp + 0x48]
imul ebx, dword [esp + 0x68]
add edx, ebx
mov ebx, dword [eax - 4]
imul ebx, dword [esp + 0x24]
add edx, ebx
mov ebx, dword [eax - 8]
imul ebx, dword [esp + 0x28]
add edx, ebx
mov ebx, dword [eax - 0xc]
imul ebx, dword [esp + 0x2c]
add edx, ebx
mov ebx, dword [eax - 0x10]
imul ebx, dword [esp + 0x30]
add edx, ebx
mov ebx, dword [eax - 0x14]
imul ebx, dword [esp + 0x34]
add edx, ebx
mov ebx, dword [eax - 0x18]
imul ebx, dword [esp + 0x38]
mov ebp, dword [eax - 0x20]
add edx, ebx
mov ebx, dword [eax - 0x1c]
imul ebx, dword [esp + 0x3c]
add edx, ebx
mov ebx, dword [esp + 0x40]
imul ebx, ebp
add edx, ebx
mov ebx, dword [esp + 0x90]
sar edx, 8
sub ebx, edx
mov edx, dword [esp + 0x90]
mov dword [eax], ebx
test edx, edx
jle 0x1008146c
xor edx, edx
cmp dword [eax - 4], edx
mov ebx, dword [esp + 0x28]
setg dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x24], edx
mov edx, dword [eax - 8]
shr edx, 0x1e
and edx, 2
lea edx, [ebx + edx - 1]
mov dword [esp + 0x28], edx
xor edx, edx
cmp dword [eax - 0xc], edx
mov ebx, dword [esp + 0x30]
setg dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x2c], edx
mov edx, dword [eax - 0x10]
shr edx, 0x1e
and edx, 2
lea edx, [ebx + edx - 1]
mov dword [esp + 0x30], edx
xor edx, edx
cmp dword [eax - 0x14], edx
mov ebx, dword [esp + 0x38]
setg dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x34], edx
mov edx, dword [eax - 0x18]
shr edx, 0x1e
and edx, 2
lea edx, [ebx + edx - 1]
mov dword [esp + 0x38], edx
xor edx, edx
cmp dword [eax - 0x1c], edx
mov ebx, dword [esp + 0x48]
setg dl
shr ebp, 0x1e
and ebp, 2
lea edx, [edx + edx - 1]
sub dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
lea edx, [edx + ebp - 1]
mov dword [esp + 0x40], edx
xor edx, edx
cmp dword [eax - 0x24], edx
setg dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x44], edx
mov edx, dword [esp + 0x68]
shr edx, 0x1e
and edx, 2
lea edx, [ebx + edx - 1]
mov dword [esp + 0x48], edx
xor edx, edx
cmp dword [eax - 0x2c], edx
setg dl
shr edi, 0x1e
and edi, 2
lea edx, [edx + edx - 1]
sub dword [esp + 0x4c], edx
mov edx, dword [esp + 0x50]
lea edx, [edx + edi - 1]
mov dword [esp + 0x50], edx
xor edx, edx
cmp dword [eax - 0x34], edx
setg dl
shr esi, 0x1e
and esi, 2
lea edx, [edx + edx - 1]
sub dword [esp + 0x54], edx
mov edx, dword [esp + 0x58]
lea edx, [edx + esi - 1]
mov dword [esp + 0x58], edx
xor edx, edx
cmp dword [eax - 0x3c], edx
setg dl
shr ecx, 0x1e
lea edx, [edx + edx - 1]
sub dword [esp + 0x5c], edx
and ecx, 2
mov edx, dword [esp + 0x60]
lea ecx, [edx + ecx - 1]
mov dword [esp + 0x60], ecx
jmp 0x10081587
jge 0x10081587
xor edx, edx
cmp dword [eax - 4], edx
mov ebx, 1
setle dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x24], edx
mov edx, dword [eax - 8]
shr edx, 0x1e
and edx, 2
sub ebx, edx
add dword [esp + 0x28], ebx
xor edx, edx
cmp dword [eax - 0xc], edx
mov ebx, 1
setle dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x2c], edx
mov edx, dword [eax - 0x10]
shr edx, 0x1e
and edx, 2
sub ebx, edx
add dword [esp + 0x30], ebx
xor edx, edx
cmp dword [eax - 0x14], edx
mov ebx, 1
setle dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x34], edx
mov edx, dword [eax - 0x18]
shr edx, 0x1e
and edx, 2
sub ebx, edx
add dword [esp + 0x38], ebx
xor edx, edx
cmp dword [eax - 0x1c], edx
mov ebx, 1
setle dl
shr ebp, 0x1e
and ebp, 2
lea edx, [edx + edx - 1]
sub dword [esp + 0x3c], edx
mov edx, 1
sub edx, ebp
add dword [esp + 0x40], edx
xor edx, edx
cmp dword [eax - 0x24], edx
setle dl
lea edx, [edx + edx - 1]
sub dword [esp + 0x44], edx
mov edx, dword [esp + 0x68]
shr edx, 0x1e
and edx, 2
sub ebx, edx
add dword [esp + 0x48], ebx
xor edx, edx
cmp dword [eax - 0x2c], edx
setle dl
shr edi, 0x1e
and edi, 2
lea edx, [edx + edx - 1]
sub dword [esp + 0x4c], edx
mov edx, 1
sub edx, edi
add dword [esp + 0x50], edx
xor edx, edx
cmp dword [eax - 0x34], edx
setle dl
shr esi, 0x1e
and esi, 2
lea edx, [edx + edx - 1]
sub dword [esp + 0x54], edx
mov edx, 1
sub edx, esi
add dword [esp + 0x58], edx
xor edx, edx
cmp dword [eax - 0x3c], edx
setle dl
shr ecx, 0x1e
lea edx, [edx + edx - 1]
sub dword [esp + 0x5c], edx
and ecx, 2
mov edx, 1
sub edx, ecx
add dword [esp + 0x60], edx
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x88]
mov edi, dword [esp + 0x7c]
mov ecx, esi
imul ecx, dword [esp + 0x20]
mov edx, ebp
imul edx, dword [esp + 0x1c]
add ecx, edx
mov edx, edi
imul edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [esp + 0x80]
sar ecx, 0xb
add ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax]
test ecx, ecx
jle 0x100815ed
xor ecx, ecx
test edi, edi
setle cl
lea ecx, [ecx + ecx - 1]
sub dword [esp + 0x18], ecx
xor ecx, ecx
test ebp, ebp
setle cl
lea ecx, [ecx*8 - 4]
sub dword [esp + 0x1c], ecx
xor ecx, ecx
test esi, esi
setle cl
jmp 0x10081617
jge 0x10081622
xor ecx, ecx
test edi, edi
setg cl
lea ecx, [ecx + ecx - 1]
sub dword [esp + 0x18], ecx
xor ecx, ecx
test ebp, ebp
setg cl
lea ecx, [ecx*8 - 4]
sub dword [esp + 0x1c], ecx
xor ecx, ecx
test esi, esi
setg cl
lea ecx, [ecx*8 - 4]
sub dword [esp + 0x20], ecx
mov ecx, dword [edx]
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x84]
sub esi, edi
lea esi, [ecx + esi*8]
mov dword [esp + 0x7c], esi
mov esi, ecx
sub esi, edi
add esi, esi
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x78]
mov ebp, esi
imul ebp, dword [esp + 0x14]
mov ebx, edi
imul ebx, dword [esp + 0x10]
sub ebp, ebx
sar ebp, 0xa
add ebp, ecx
xor esi, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x8c], ecx
mov dword [edx], ebp
jl 0x10081687
add dword [esp + 0x14], 2
jmp 0x1008168c
sub dword [esp + 0x14], 2
mov esi, edi
xor esi, ecx
jl 0x10081698
dec dword [esp + 0x10]
jmp 0x1008169c
inc dword [esp + 0x10]
mov ecx, ebp
lea esi, [ecx + ecx]
sub esi, edi
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0xa0]
mov esi, dword [esi + eax - 4]
mov edi, esi
shl edi, 5
sub edi, esi
sar edi, 5
add edi, ecx
mov dword [edx], edi
add edx, 4
add eax, 4
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
cmp edx, dword [esp + 0x9c]
jb 0x10081275
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc