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

Disassembly:
sub esp, 0x40
push esi
mov esi, dword [esp + 0x54]
test esi, esi
jle 0x10126780
push ebx
push ebp
mov ebp, dword [esp + 0x60]
lea edx, [esi*4]
push edi
lea ecx, [esi*8]
mov ebx, 0xe
sub ebx, ebp
lea eax, [ebp + 2]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x58]
lea edi, [edx + eax]
add eax, 2
add eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
lea edi, [edx + eax]
add eax, 2
add eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov edi, 0xfffffffe
mov eax, edx
sub edi, ecx
sub eax, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], eax
mov eax, ecx
sub eax, edx
mov ecx, 2
mov dword [esp + 0x3c], eax
sub ecx, edx
lea eax, [esi + esi]
mov dword [esp + 0x48], ecx
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
nop dword [eax]
movzx eax, word [eax + ecx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
movzx eax, word [eax + edi]
movzx edi, word [edx + ecx]
lea edx, [ebp + 2]
cmp edx, 0xe
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov edx, 2
cmovle ebx, edx
add ebx, ebp
push ebx
movzx ecx, word [eax]
push ecx
mov dword [esp + 0x20], ebx
call fcn.1013fb00
push ebx
push edi
mov ebp, eax
call fcn.1013fb00
push dword [esp + 0x28]
mov ebx, eax
push dword [esp + 0x3c]
call fcn.1013fb00
push dword [esp + 0x30]
mov edi, eax
push dword [esp + 0x4c]
call fcn.1013fb00
push dword [esp + 0x38]
add eax, edi
add ebp, 2
add eax, ebx
add eax, ebp
shr eax, 2
push eax
call fcn.1013fc90
mov ecx, dword [esp + 0x88]
mov edx, 2
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x4c], 0xe
mov ebx, dword [esp + 0x48]
movzx eax, ax
cmovle ebx, edx
add ebx, dword [esp + 0x8c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push ebx
mov dword [esp + 0x44], ebx
movzx eax, word [ecx + eax]
mov dword [esp + 0x64], eax
movzx eax, word [edi]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
movzx ecx, word [eax]
movzx edi, word [eax + 2]
push ecx
call fcn.1013fb00
push ebx
push edi
mov ebp, eax
call fcn.1013fb00
push dword [esp + 0x50]
mov ebx, eax
push dword [esp + 0x6c]
call fcn.1013fb00
add esp, 0x40
mov edi, eax
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.1013fb00
push dword [esp + 0x20]
add eax, edi
add ebp, 2
add eax, ebx
add eax, ebp
shr eax, 2
push eax
call fcn.1013fc90
movzx eax, ax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x34], 0xe
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x50], eax
movzx eax, word [ecx]
mov dword [esp + 0x40], eax
movzx eax, word [ecx - 2]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
movzx edi, word [eax]
mov eax, dword [esp + 0x4c]
movzx ecx, word [edx + eax]
mov edx, 2
cmovle ebx, edx
add ebx, dword [esp + 0x74]
push ebx
push ecx
mov dword [esp + 0x30], ebx
call fcn.1013fb00
push ebx
push edi
mov ebp, eax
call fcn.1013fb00
push dword [esp + 0x38]
mov ebx, eax
push dword [esp + 0x5c]
call fcn.1013fb00
push dword [esp + 0x40]
mov edi, eax
push dword [esp + 0x5c]
call fcn.1013fb00
push dword [esp + 0x48]
add eax, edi
add ebp, 2
add eax, ebx
add eax, ebp
shr eax, 2
push eax
call fcn.1013fc90
mov ebp, dword [esp + 0x78]
mov ecx, 0xb717
movzx ebx, ax
add esp, 0x38
mov eax, ebp
imul ecx
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x28]
mov edx, 0x366d
imul edx
add edi, eax
mov eax, ebx
adc ecx, edx
mov edx, 0x127c
imul edx
add eax, edi
mov edi, dword [esp + 0x2c]
adc ecx, edx
mov edx, dword [esp + 0x5c]
add eax, 0x8000
adc ecx, 0
add dword [esp + 0x60], 4
add dword [esp + 0x54], 4
shrd eax, ecx, 0x10
mov ecx, dword [esp + 0x28]
sub ecx, eax
sub ebp, eax
mov word [edx], cx
sub ebx, eax
mov ecx, dword [esp + 0x44]
add edx, 2
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], eax
mov word [edi + ecx], bp
mov word [edi], bx
add edi, 2
add dword [esp + 0x10], 4
mov dword [esp + 0x2c], edi
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
sub esi, 1
jne 0x10126540
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x40
ret