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

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, 0x10
or ebp, 0xffffffff
sub esi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], esi
push edi
test edx, edx
jne 0x1007d764
test eax, eax
jne 0x1007d764
mov edx, dword [esp + 0x54]
mov esi, 1
shl esi, cl
sar esi, 1
movsx eax, word [edx]
add eax, esi
sar eax, cl
mov dword [esp + 0x3c], eax
movsx eax, word [edx + 2]
add eax, esi
sar eax, cl
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x78], eax
cmp dword [esp + 0x4c], eax
jle 0x1007d8f1
inc ecx
mov dword [esp + 0x20], ecx
nop
mov edx, dword [esp + 0x70]
movsx edi, word [edx + eax*2]
mov edx, dword [esp + 0x48]
mov esi, edi
lea eax, [edi*4]
mov ebp, dword [eax + edx]
mov dword [esp + 0x18], eax
mov eax, ebp
sar eax, 0x1f
xor ebp, eax
mov dword [esp + 0x24], eax
sub ebp, eax
mov eax, dword [esp + 0x68]
neg esi
mov edx, ebp
sbb esi, esi
shl edx, cl
and esi, 2
movsx ebx, word [esi + eax]
cmp edx, ebx
jl 0x1007d71f
neg edi
sbb edi, edi
and edi, 4
mov eax, dword [esp + edi + 0x3c]
cdq
mov edi, eax
mov ecx, edx
mov eax, ebp
cdq
add edi, eax
mov eax, dword [esp + 0x58]
adc ecx, edx
movsx eax, word [esi + eax]
cdq
push edx
push eax
push ecx
push edi
call fcn.10511b50
mov ecx, dword [esp + 0x28]
call fcn.10511c50
mov edx, dword [esp + 0x24]
mov esi, eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
mov ebp, eax
imul ebx, esi
sar ebx, cl
xor ebx, edx
sub ebx, edx
test esi, esi
cmove ebp, dword [esp + 0x14]
xor esi, edx
mov dword [esp + 0x14], ebp
sub esi, edx
jmp 0x1007d72b
mov eax, dword [esp + 0x78]
xor ebx, ebx
mov ebp, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + 0x18]
inc eax
mov edx, ecx
mov edi, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov dword [edx + edi], esi
mov edx, dword [esp + 0x64]
mov dword [ecx + edx], ebx
mov ecx, dword [esp + 0x20]
cmp eax, dword [esp + 0x4c]
jl 0x1007d680
mov eax, dword [esp + 0x6c]
lea ecx, [ebp + 1]
pop edi
pop esi
pop ebp
mov word [eax], cx
pop ebx
add esp, 0x34
ret
xor ebx, ebx
cmp dword [esp + 0x4c], ebx
jle 0x1007d8f1
mov edi, 4
sub edi, ecx
lea ecx, [esi + 5]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x3c], ebp
movsx edi, word [ecx + ebx*2]
mov ecx, dword [esp + 0x48]
lea ebp, [edi*4]
mov esi, dword [ecx + ebp]
test edx, edx
je 0x1007d7a5
mov cl, byte [edi + edx]
jmp 0x1007d7a7
mov cl, 0x20
test eax, eax
je 0x1007d7b4
mov al, byte [edi + eax]
mov byte [esp + 0x13], al
jmp 0x1007d7b9
mov byte [esp + 0x13], 0x20
mov eax, dword [esp + 0x68]
neg edi
mov edx, esi
sbb edi, edi
sar edx, 0x1f
and edi, 2
mov dword [esp + 0x38], edx
movsx eax, word [edi + eax]
mov dword [esp + 0x28], eax
mov eax, edx
xor eax, esi
sub eax, edx
cdq
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
push dword [esp + 0x1c]
movzx eax, cl
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
cdq
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edx
push dword [esp + 0x28]
shl eax, cl
push dword [esp + 0x30]
cdq
mov dword [esp + 0x40], eax
mov esi, edx
call fcn.10511b50
cmp edx, esi
jl 0x1007d8c4
jg 0x1007d82a
cmp eax, dword [esp + 0x30]
jb 0x1007d8c4
mov eax, dword [esp + 0x54]
mov edx, 1
mov ecx, dword [esp + 0x80]
shl edx, cl
sar edx, 1
movsx eax, word [edi + eax]
add eax, edx
sar eax, cl
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x58]
add esi, dword [esp + 0x18]
adc ecx, dword [esp + 0x1c]
movsx eax, word [edi + eax]
cdq
push edx
push eax
push ecx
push esi
call fcn.10511b50
push dword [esp + 0x20]
push dword [esp + 0x28]
push edx
push eax
call fcn.10511b50
mov ecx, dword [esp + 0x34]
call fcn.10511c50
mov esi, dword [esp + 0x38]
mov ecx, eax
mov edx, dword [esp + 0x60]
xor ecx, esi
sub ecx, esi
mov dword [edx + ebp], ecx
movzx edx, byte [esp + 0x13]
imul edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x80]
add edx, 0x10
sar edx, 5
imul edx, eax
sar edx, cl
mov ecx, dword [esp + 0x64]
xor edx, esi
sub edx, esi
test eax, eax
mov dword [ecx + ebp], edx
mov ebp, ebx
cmove ebp, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
jmp 0x1007d8de
mov eax, dword [esp + 0x60]
mov dword [eax + ebp], 0
mov eax, dword [esp + 0x64]
mov dword [eax + ebp], 0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
inc ebx
mov edx, dword [esp + 0x78]
cmp ebx, dword [esp + 0x4c]
jl 0x1007d782
mov eax, dword [esp + 0x6c]
lea ecx, [ebp + 1]
pop edi
pop esi
pop ebp
mov word [eax], cx
pop ebx
add esp, 0x34
ret