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

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov ecx, dword [ebx + 0x58]
mov edi, dword [esp + 0x98]
push 0
push edi
movzx eax, word [ecx + 0x1e]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], eax
call fcn.10176360
mov ecx, dword [ebx + 0x58]
and eax, 1
push eax
push edi
mov dword [esp + 0x4c], eax
call fcn.10176360
mov esi, dword [ebx + 4]
xor ebp, ebp
mov dword [esp + 0x18], eax
mov ecx, esi
neg ecx
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x80], ecx
mov edx, esi
lea eax, [esi - 1]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x90], eax
mov ecx, 1
lea eax, [edi + 4]
not edx
imul eax, esi
sub ecx, esi
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x74], eax
cmp dword [esp + 0x40], ebp
jbe 0x101811b8
mov esi, dword [esp + 0x18]
xor esi, 2
add ebx, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x78], ebx
nop dword [eax + eax]
add eax, 4
mov dword [esp + 0x38], ebx
add eax, ebp
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], edx
lea ecx, [eax + eax*2]
add ecx, ecx
lea eax, [esp + 0x7c]
and ebp, 1
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x10], eax
nop dword [eax + eax]
mov ebx, dword [ebx]
mov edi, esi
add ebx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebx
cmp ebp, dword [esp + 0x44]
je 0x10180fc1
lea eax, [edx + edx]
xor edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [edi + edi]
xor esi, esi
mov dword [esp + 0x68], ecx
xor edx, edx
movzx ecx, word [ebx + 2]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x4c], ecx
nop dword [eax]
mov eax, dword [eax + edx*4]
xor ecx, ecx
lea eax, [eax + eax*2]
lea eax, [ebx + eax*2]
movzx ebp, word [eax + edi*2]
movzx eax, word [eax + 2]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x30], eax
jmp 0x10181009
mov ebp, dword [esp + 0x48]
mov esi, dword [eax]
lea eax, [esi + esi*2]
sub edi, eax
lea edx, [esi + esi*2]
mov esi, ebp
add edx, edx
sub esi, dword [esp + 0x28]
movzx edi, word [ebx + edi*2]
sub ebx, edx
sub esi, edi
sub ebp, edi
mov edi, ebp
mov dword [esp + 0x54], ebp
sar edi, 0x1f
movzx eax, word [ebx + 2]
add esi, eax
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x4c]
mov edx, esi
movzx ebx, di
sar edx, 0x1f
lea ebp, [ebx + ebx]
mov ebx, dword [esp + 0x2c]
sub ebp, dword [esp + 0x28]
sub ebp, eax
mov eax, edx
xor eax, esi
mov dword [esp + 0x58], ebp
sub eax, edx
sar ebp, 0x1f
cdq
and edx, 3
lea esi, [edx + eax]
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
cdq
and edx, 3
sar esi, 2
add eax, edx
sar eax, 2
add esi, eax
mov eax, ebp
xor eax, dword [esp + 0x58]
add esi, eax
sub esi, ebp
test ebx, ebx
je 0x10181091
cmp esi, ebx
jge 0x101810a7
mov edx, dword [esp + 0x1c]
mov ebp, ecx
mov dword [esp + 0x2c], esi
mov esi, edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], esi
jmp 0x101810b3
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x30]
inc ecx
mov ebx, dword [esp + 0x20]
add eax, 4
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
cmp ecx, 3
jl 0x10181005
mov eax, dword [esp + 0x10]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 3
jl 0x10180fe0
mov ecx, dword [esp + 0x24]
lea eax, [ecx + ebp]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + eax*4 + 0x7c]
lea eax, [ecx + esi]
mov edi, dword [esp + eax*4 + 0x7c]
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
sub eax, ecx
cdq
sub eax, edx
movzx edx, word [ebx + 2]
mov ecx, eax
movzx eax, dx
sar ecx, 1
add ecx, eax
mov eax, dword [esp + 0x64]
movzx edx, word [eax + ebp*2 + 0x24]
cmp ecx, edx
jg 0x10181156
movzx eax, word [eax + ebp*2 + 0x2c]
mov edx, ecx
cmp ecx, eax
cmovl edx, eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x70]
add ecx, 3
mov esi, dword [esp + 0x18]
mov word [eax + ebx], dx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
inc edx
mov eax, dword [esp + 0x10]
add ebx, 4
add eax, 0xc
mov dword [esp + 0x24], ecx
cmp ecx, 6
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], eax
jl 0x10180fa0
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
inc ebp
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x3c], ebp
cmp ebp, dword [esp + 0x40]
jl 0x10180f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 4