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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
push edi
mov edi, ecx
mov dword [esp + 0x68], edi
mov ecx, dword [edi + 0x58]
movzx eax, word [ecx + 0x1e]
mov ebp, dword [ecx + 0x194]
mov dword [esp + 0x44], eax
test ebp, ebp
jne 0x1017b963
mov ebp, 6
jmp 0x1017b99a
cmp ebp, 0x3e8
jae 0x1017b977
push 0
push esi
call fcn.10124820
mov ebp, eax
jmp 0x1017b99a
cmp word [ecx + 0x5483e], 0
je 0x1017b98d
push 0
push esi
call fcn.1017d2d0
mov ebp, eax
jmp 0x1017b99a
mov ecx, esi
and ecx, 7
shl ecx, 2
shr ebp, cl
and ebp, 3
mov ecx, dword [edi + 0x58]
and ebp, 1
mov dword [esp + 0x48], ebp
mov eax, dword [ecx + 0x194]
test eax, eax
jne 0x1017b9b8
mov dword [esp + 0x10], 6
jmp 0x1017b9ef
cmp eax, 0x3e8
jae 0x1017b9c8
push ebp
push esi
call fcn.10124820
jmp 0x1017b9eb
cmp word [ecx + 0x5483e], 0
je 0x1017b9db
push ebp
push esi
call fcn.1017d2d0
jmp 0x1017b9eb
mov ecx, esi
and ecx, 7
add ecx, ecx
or ecx, ebp
add ecx, ecx
shr eax, cl
and eax, 3
mov dword [esp + 0x10], eax
mov edx, dword [edi + 4]
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x88], 0xffffffff
neg eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x7c], eax
mov ecx, edx
mov eax, 1
not ecx
sub eax, edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], eax
lea eax, [edx - 1]
mov dword [esp + 0x8c], eax
lea eax, [esi + 4]
imul eax, edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x70], eax
cmp dword [esp + 0x44], ebx
jbe 0x1017bc9c
mov ecx, dword [esp + 0x10]
xor ecx, 2
add edi, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x74], edi
add eax, ebx
mov dword [esp + 0x3c], edi
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], esi
lea edx, [eax + eax*2]
mov eax, edi
add edx, edx
and ebx, 1
mov dword [esp + 0x4c], ebx
lea ebx, [esp + 0x78]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x20], ebx
mov eax, dword [eax]
lea edi, [edx + 0x18]
add edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edi
cmp dword [esp + 0x4c], ebp
je 0x1017baa0
lea eax, [esi + esi]
xor ecx, eax
mov dword [esp + 0x1c], ecx
xor esi, esi
xor edx, edx
mov dword [esp + 0x2c], esi
lea esi, [ecx + ecx]
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], esi
jmp 0x1017babd
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + edx*4]
xor ecx, ecx
lea eax, [eax + eax*2]
lea eax, [edi + eax*2]
movzx ebp, word [eax + esi]
movzx eax, word [eax + 2]
mov dword [esp + 0x28], eax
movzx eax, word [edi + 2]
add eax, eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], eax
mov eax, ebx
mov dword [esp + 0x30], eax
jmp 0x1017baf8
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x50]
mov esi, dword [eax]
mov edx, dword [esp + 0x1c]
lea eax, [esi + esi*2]
sub edx, eax
mov eax, dword [esp + 0x14]
movzx edi, word [edi + edx*2]
lea edx, [esi + esi*2]
add edx, edx
sub eax, edx
movzx edx, word [eax + 2]
mov eax, dword [esp + 0x54]
mov esi, edx
sub eax, edx
sub esi, edi
sub eax, dword [esp + 0x28]
sub esi, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
add esi, ebp
sar eax, 0x1f
mov ebx, esi
mov dword [esp + 0x58], eax
sub ebp, edi
sar ebx, 0x1f
mov edi, ebp
mov eax, ebx
sar edi, 0x1f
xor eax, esi
sub eax, ebx
mov ebx, dword [esp + 0x2c]
cdq
and edx, 3
lea esi, [edx + eax]
mov eax, edi
xor eax, ebp
sar esi, 2
sub eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esi, eax
mov eax, dword [esp + 0x58]
xor eax, dword [esp + 0x5c]
add esi, eax
sub esi, dword [esp + 0x58]
test ebx, ebx
je 0x1017bb7c
cmp esi, ebx
jge 0x1017bb92
mov edx, dword [esp + 0x18]
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
jmp 0x1017bb9e
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
inc ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp ecx, 3
jl 0x1017baf0
mov esi, dword [esp + 0x34]
inc edx
mov dword [esp + 0x18], edx
cmp edx, 3
jl 0x1017bab5
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ebx]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + eax*4 + 0x78]
lea eax, [ecx + ebp]
mov edi, dword [esp + eax*4 + 0x78]
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
lea eax, [edx + edx*2]
sub ecx, eax
lea eax, [edx + edx*2]
add eax, eax
movzx esi, word [ebx + ecx*2]
mov ecx, ebx
sub ecx, eax
movzx ecx, word [ecx + 2]
sub esi, ecx
lea ecx, [edi*2]
add ecx, ebp
add ecx, edi
movzx eax, word [ebx + ecx*2]
lea ecx, [edi + edi*2]
movzx ecx, word [ebx + ecx*2 + 2]
add eax, esi
mov edi, dword [esp + 0x68]
sub eax, ecx
movzx ecx, word [ebx + 2]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, ecx
movzx ecx, word [edi + ebp*2 + 0x24]
cmp edx, ecx
jg 0x1017bc3a
movzx eax, word [edi + ebp*2 + 0x2c]
mov ecx, edx
cmp edx, eax
cmovl ecx, eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
add edx, 3
mov ebp, dword [esp + 0x48]
inc esi
mov word [ebx + eax], cx
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
add eax, 4
mov ecx, dword [esp + 0x10]
add ebx, 0xc
mov dword [esp + 0x24], edx
cmp edx, 6
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebx
jl 0x1017ba82
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
inc ebx
mov edi, dword [esp + 0x74]
mov dword [esp + 0x40], ebx
cmp ebx, dword [esp + 0x44]
jl 0x1017ba58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4