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

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
push ebx
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x10727980]
mov dword [esp + 0x24], eax
mov eax, 3
cmp ecx, eax
cmovl eax, ecx
xor ebx, ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x6c], ebx
test eax, eax
jle 0x1012c6b4
mov eax, dword [esp + 0x90]
push ebp
mov ebp, dword [esp + 0x90]
mov ecx, ebp
push esi
lea esi, [eax + 0x28]
sub ecx, eax
push edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x80], ecx
xor eax, eax
cmp eax, ebx
sbb edx, edx
and edx, 4
cmp eax, ebx
mov eax, dword [esp + 0x80]
sbb ecx, ecx
and ecx, 4
mov edi, dword [edx + ebp + 0x10]
mov eax, dword [esi + eax]
mov esi, dword [esp + 0x98]
mov ebp, dword [ecx + ebp + 0x18]
mov dword [esp + 0x68], eax
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x6c], edi
mov ebx, dword [esp + 0x9c]
sbb eax, eax
mov dword [esp + 0x4c], ebp
and eax, 4
mov ebx, dword [edx + ebx + 0x10]
mov edx, dword [esp + 0x9c]
mov esi, dword [eax + esi + 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ebx
mov ecx, dword [ecx + edx + 0x18]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov edx, dword [edx]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x9c]
mov eax, dword [eax + edx + 0x20]
mov dword [esp + 0x34], eax
test ecx, ecx
jle 0x1012c682
shl dword [esp + 0x4c], 8
xor edx, edx
shl eax, 4
mov dword [esp + 0x8c], eax
mov eax, ebp
shl eax, 4
mov ebp, ecx
mov dword [esp + 0x24], eax
lea eax, [ecx - 1]
shr eax, 4
inc eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x74], eax
mov eax, edi
shl eax, 8
lea edi, [ebx - 1]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0x3c], eax
nop dword [eax]
mov dword [esp + 0x64], eax
mov eax, edx
cdq
idiv ecx
mov dword [esp + 0x88], edi
mov ecx, eax
add ecx, dword [esp + 0xa4]
test ebx, ebx
jle 0x1012c637
mov ebp, dword [esp + 0x6c]
mov eax, edi
shr eax, 4
and ecx, 0xf
inc eax
shl ebp, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
cdq
idiv dword [esp + 0x28]
cmp dword [esp + 0x14], 0x10
mov dword [esp + 0x54], ecx
jle 0x1012c6cc
imul eax, esi
mov esi, ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
cdq
idiv dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
idiv dword [esp + 0x2c]
add ecx, dword [esp + 0xa4]
mov edi, eax
and ecx, 0xf
add edi, dword [esp + 0x48]
mov eax, ebp
add edi, dword [esp + 0x68]
cdq
idiv dword [esp + 0x2c]
cmp esi, 0x10
jg 0x1012c5c7
jne 0x1012c5eb
push 0x10
push 0x10
push dword [esp + 0x28]
push dword [esp + 0x60]
push eax
push ecx
push dword [esp + 0x48]
push dword [esp + 0x50]
push ebx
push dword [esp + 0x3c]
push edi
call dword [0x10b4903c]
jmp 0x1012c60b
push 0x10
push esi
push dword [esp + 0x28]
push dword [esp + 0x60]
push eax
push ecx
push dword [esp + 0x48]
push dword [esp + 0x50]
push ebx
push dword [esp + 0x3c]
push edi
call fcn.1018e570
mov eax, dword [esp + 0x48]
add esp, 0x2c
add eax, dword [esp + 0x3c]
add ebx, 0x10
add dword [esp + 0x10], ebp
sub esi, 0x10
sub dword [esp + 0x38], 1
mov dword [esp + 0x1c], eax
jne 0x1012c595
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
lea edi, [ebx - 1]
shl eax, 8
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x40]
sub ebp, 0x10
add ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x70]
add edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x8c]
add dword [esp + 0x44], ecx
sub dword [esp + 0x74], 1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x14], ebp
jne 0x1012c520
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x50]
inc ebx
mov ebp, dword [esp + 0x98]
add esi, 4
mov dword [esp + 0x78], ebx
mov dword [esp + 0x50], esi
cmp ebx, dword [esp + 0x90]
jl 0x1012c455
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
push ecx
push dword [esp + 0x94]
call fcn.100f61d0
add esp, 8
pop ebx
add esp, 0x84
ret
imul eax, dword [esp + 0x18]
mov edi, ebp
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edx
cdq
idiv ebx
add eax, dword [esp + 0xa4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
cdq
idiv ebx
add eax, dword [esp + 0x84]
add eax, dword [esp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x10
jle 0x1012c734
mov edx, 0x10
jmp 0x1012c745
mov esi, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0x58], ecx
mov edi, ebp
cmp edx, 0x10
jne 0x1012c790
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
cmp eax, 0x10
jne 0x1012c794
push eax
push eax
mov eax, esi
cdq
idiv dword [esp + 0x30]
push eax
mov eax, edi
cdq
idiv ebx
push ecx
push eax
mov eax, dword [esp + 0x70]
and eax, 0xf
push eax
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x30]
push dword [esp + 0x3c]
push dword [esp + 0x88]
call dword [0x10b4903c]
mov esi, dword [esp + 0x50]
mov edi, ebp
jmp 0x1012c7cc
mov eax, dword [esp + 0x14]
push eax
push edx
mov eax, esi
cdq
idiv dword [esp + 0x30]
push eax
mov eax, edi
cdq
idiv ebx
push dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x70]
and eax, 0xf
push eax
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x30]
push dword [esp + 0x3c]
push dword [esp + 0x88]
call fcn.1018e570
mov eax, dword [esp + 0x74]
add esp, 0x2c
add eax, dword [esp + 0x64]
add dword [esp + 0x1c], ebp
add dword [esp + 0x10], 0x10
sub dword [esp + 0x20], 0x10
sub dword [esp + 0x38], 1
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x48], eax
jne 0x1012c700
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
jmp 0x1012c645