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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x58], ebx
push edi
cmp ebx, esi
je 0x10012f03
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1001292d
mov ebp, dword [esp + 0x44]
mov edx, ebx
push ebp
mov ecx, esi
mov dword [esp + 0x6c], ebp
call fcn.100128bd
mov edi, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [ebx + 0x18]
add esp, 0x14
cdq
and edx, 7
add eax, edx
mov edx, ebx
sar eax, 3
mov ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
imul ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x14]
call fcn.100128f5
imul eax, dword [ebx + 0xc]
mov edx, ebx
pop ecx
mov ecx, dword [esp + 0x34]
imul ecx, esi
mov esi, dword [esp + 0x34]
push 1
add eax, ecx
mov ecx, esi
add eax, dword [ebx + 0x304]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
imul ecx, ebp
mov eax, dword [eax + 0xc]
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [eax + 0x304]
mov dword [esp + 0x1c], ecx
mov ecx, eax
call fcn.100128bd
pop ecx
mov ecx, dword [esp + 0x10]
mov edx, ebx
push 1
mov dword [esp + 0x18], eax
call fcn.100128f5
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
imul eax, dword [esp + 0x18]
pop ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax + ebp]
cmp ecx, dword [edx + 8]
jle 0x10012c07
test ebp, ebp
jne 0x10012bfe
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
jmp 0x10012c07
mov ebp, dword [edx + 8]
sub ebp, eax
mov dword [esp + 0x58], ebp
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
lea eax, [ecx + edi]
cmp eax, dword [edx + 0x10]
jle 0x10012c29
test edi, edi
jne 0x10012c24
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x34], ecx
jmp 0x10012c29
mov edi, dword [edx + 0x10]
sub edi, ecx
cmp byte [ebx + 0x2f], 0
je 0x10012e5d
movzx eax, byte [ebx + 0x36]
mov dword [esp + 0x58], eax
movzx eax, byte [ebx + 0x37]
mov dword [esp + 0x50], eax
movzx eax, byte [ebx + 0x38]
mov dword [esp + 0x44], eax
movzx eax, word [ebx + 0x30]
mov dword [esp + 0x54], eax
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x4c], eax
movzx eax, word [ebx + 0x34]
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x10012f03
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
test edi, edi
jle 0x10012e35
xor edx, edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x2c], edx
xor ecx, ecx
xor eax, eax
and dword [esp + 0x28], ecx
xor edi, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x14], eax
jle 0x10012d7a
mov edi, dword [esp + 0x14]
mov ebp, eax
cmp dword [esp + 0x20], 0
jle 0x10012d65
lea edi, [edx + eax]
mov eax, dword [esp + 0x20]
imul edi, esi
lfence
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x24], eax
add edi, dword [esp + 0x30]
mov eax, esi
xor edx, edx
sub eax, 1
je 0x10012d11
sub eax, 1
je 0x10012d0c
dec eax
sub eax, 1
je 0x10012d08
xor ebx, ebx
test esi, esi
jle 0x10012d14
xor ecx, ecx
movzx eax, byte [edi + ebx]
shl eax, cl
add ecx, 8
add edx, eax
inc ebx
cmp ebx, esi
jl 0x10012cf6
jmp 0x10012d14
mov edx, dword [edi]
jmp 0x10012d14
movzx edx, word [edi]
jmp 0x10012d14
movzx edx, byte [edi]
mov ecx, dword [esp + 0x58]
mov eax, edx
add edi, dword [esp + 0x64]
shr eax, cl
and eax, dword [esp + 0x54]
add dword [esp + 0x28], eax
mov eax, edx
mov ecx, dword [esp + 0x50]
shr eax, cl
mov ecx, dword [esp + 0x44]
and eax, dword [esp + 0x4c]
shr edx, cl
add ebp, eax
and edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
add ecx, edx
sub dword [esp + 0x24], 1
mov dword [esp + 0x38], ecx
jne 0x10012cda
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], ebp
inc eax
mov dword [esp + 0x3c], eax
cmp eax, edi
jl 0x10012cb3
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, ecx
xor edx, edx
div dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
xor edx, edx
and eax, dword [esp + 0x40]
shl eax, cl
mov dword [esp + 0x18], eax
mov eax, edi
div dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
xor edx, edx
and eax, dword [esp + 0x4c]
shl eax, cl
or dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
div dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
and eax, dword [esp + 0x54]
shl eax, cl
mov ecx, dword [esp + 0x18]
or ecx, eax
mov eax, esi
mov dword [esp + 0x18], ecx
sub eax, 1
je 0x10012e02
sub eax, 1
je 0x10012dfc
dec eax
sub eax, 1
je 0x10012df7
xor edx, edx
test esi, esi
jle 0x10012e05
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov eax, ebx
shr eax, cl
add ecx, 8
mov byte [edx + ebp], al
inc edx
cmp edx, esi
jl 0x10012de2
mov ebx, dword [esp + 0x5c]
jmp 0x10012e05
mov dword [ebp], ecx
jmp 0x10012e05
mov word [ebp], cx
jmp 0x10012e05
mov byte [ebp], cl
mov edx, dword [esp + 0x2c]
add ebp, esi
add edx, dword [esp + 0x14]
sub dword [esp + 0x60], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], edx
jne 0x10012c8d
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
imul eax, dword [esp + 0x20]
add dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
sub eax, dword [esp + 0x68]
add ebp, eax
sub ecx, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ecx
jne 0x10012c73
jmp 0x10012f03
lea eax, [edi + ecx]
mov dword [esp + 0x50], eax
cmp edi, eax
jge 0x10012f03
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
add eax, ebp
mov dword [esp + 0x54], eax
cmp ebp, eax
jge 0x10012efa
mov eax, esi
imul eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
imul eax, esi
mov ecx, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
imul ecx, ebp
sub eax, ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov eax, dword [ebx + 0xc]
imul eax, edi
push esi
imul eax, dword [esp + 0x24]
add eax, ecx
add eax, dword [ebx + 0x304]
push eax
mov eax, dword [edx + 0xc]
imul eax, edi
add eax, ebp
add eax, dword [edx + 0x304]
push eax
call fcn.10027640
mov ecx, dword [esp + 0x6c]
add esp, 0xc
add ecx, dword [esp + 0x64]
add ebp, esi
sub dword [esp + 0x5c], 1
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
jne 0x10012ea9
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
inc edi
cmp edi, ecx
jl 0x10012e7a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret