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

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0x88]
push esi
mov esi, dword [esp + 0x88]
mov ecx, dword [esi + 0x19c]
push edi
mov edi, eax
mov al, byte [ebp + 1]
and al, 0xf
cmp dword [esi + 0x1c0], 0
mov dword [esp + 0x24], 0
lea edx, [ecx + ecx]
jne 0x1c84c8
mov edx, ecx
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov ebx, dword [esi + 0x1b4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
movzx eax, al
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov ecx, dword [0x4f0504]
mov ecx, dword [ecx + eax*4]
or ecx, eax
mov eax, dword [eax*4 + 0x4288f0]
add dword [edi], eax
mov dword [esp + 0x74], ecx
movzx ecx, byte [ebp]
mov eax, ecx
shr eax, 5
mov edi, ecx
shr edi, 4
and eax, edi
mov edi, dword [esi + 0x1c4]
imul edi, dword [esi + 0x19c]
and eax, 1
imul eax, edx
add eax, edi
add eax, dword [esi + 0x194]
test cl, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x3c], eax
je 0x1c8568
shr dword [esp + 0x14], 1
lea ecx, [edx + edx]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x24]
jmp 0x1c8575
mov esi, dword [esp + 0x8c]
test byte [ebp + 3], 0xee
je 0x1c89c5
movzx edx, byte [ebp + 8]
cmp dword [esi + edx*8 + 0x348], 0xffffffff
lea eax, [esi + edx*8 + 0x348]
mov dword [esp + 0x38], eax
jne 0x1c85a2
cmp dword [eax + 4], 0
je 0x1c89cc
movzx eax, byte [ebp + 0xa]
cmp dword [esi + eax*8 + 0x348], 0xffffffff
lea eax, [esi + eax*8 + 0x348]
mov dword [esp + 0x4c], eax
jne 0x1c85cb
cmp dword [eax + 4], 0
jne 0x1c85cb
test byte [ebp], 4
jne 0x1c89cc
movsx eax, word [ebp + 0xe]
movsx edi, word [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
movzx eax, byte [ebp + 2]
mov ebx, eax
shr eax, 4
mov dword [esp + 0x28], eax
movzx eax, byte [ebp + 3]
mov edx, eax
shr eax, 3
and eax, 0x1e
mov dword [esp + 0x2c], eax
movzx eax, word [ebp + 4]
mov esi, edi
and ebx, 0xf
mov ecx, esi
sar ecx, 2
add ecx, eax
mov eax, dword [esp + 0x10]
and dword [esp + 0x10], 3
add ecx, ebx
mov dword [esp + 0x40], ebx
movzx ebx, word [ebp + 6]
sar eax, 2
add eax, ebx
add eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x8c]
mov ebx, dword [ebx + 0x1a0]
and edx, 0xf
add ebx, 0xffffffec
add edx, edx
and esi, 3
cmp ecx, ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebx
jg 0x1c86c7
cmp ecx, 1
jle 0x1c86c7
mov ebx, dword [esp + 0x14]
add ebx, 0xffffffec
cmp eax, ebx
jg 0x1c86c7
cmp eax, 1
jle 0x1c86c7
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx*4 + 0x4e5fb4]
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x5c], 0
shl ebx, 0x18
mov dword [esp + 0x30], ebx
mov ebx, dword [esi*4 + 0x4e5fb4]
add ebx, edx
mov edx, dword [esp + 0x30]
shl ebx, 0x10
or edx, ebx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x10]
sub eax, dword [edx*4 + 0x4e5fa4]
mov edx, dword [esp + 0x18]
imul eax, edx
sub eax, dword [esi*4 + 0x4e5fa4]
add eax, ecx
movzx ecx, word [ebp + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
imul eax, edx
add eax, ecx
mov dword [esp + 0x64], eax
jmp 0x1c86e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
push 0
push eax
push ebp
push ecx
lea ecx, [esp + 0x68]
call fcn.001c8100
movzx eax, byte [ebp]
movzx ecx, byte [ebp + 3]
movzx edx, byte [ebp + 2]
mov esi, eax
and esi, 0xfffffff0
shl esi, 0xf
mov ebx, ecx
and ecx, 0xe0
and ebx, 0xe
or esi, ebx
add esi, esi
or esi, ecx
mov cl, byte [ebp + 1]
shl esi, 6
and eax, 4
and edi, 3
and ecx, 0xf0
or esi, ecx
add esi, esi
add esi, esi
mov ecx, edx
and ecx, 0xc
or esi, ecx
mov ecx, dword [esp + 0x38]
add esi, esi
or esi, eax
mov eax, dword [esp + 0x34]
or esi, edi
and edx, 0xc0
add esi, esi
or esi, edx
mov dl, byte [ebp + 9]
and eax, 3
add esi, esi
or esi, eax
mov dword [esp + 0x68], esi
and edx, 1
mov eax, dword [esp + edx*4 + 0x50]
add eax, dword [ecx]
mov edx, dword [esp + 0x58]
add eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
xor eax, eax
add ecx, edx
cmp byte [ebp + 0x13], al
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
jl 0x1c87b1
movsx eax, byte [ebp + 0x13]
lea ecx, [eax + 4]
mov edx, 1
shl edx, cl
mov cx, word [ebp + 0x10]
and ecx, 0x1ff
shl ecx, 0xd
or edx, ecx
or edx, eax
mov dword [esp + 0x7c], edx
test byte [ebp], 4
jne 0x1c87c5
xor edx, edx
mov dh, byte [ebp + 0x12]
or dword [esp + 0x74], edx
jmp 0x1c897a
movsx edi, word [ebp + 0x14]
movsx ebx, word [ebp + 0x16]
movzx eax, word [ebp + 4]
mov edx, edi
mov ecx, edx
sar ecx, 2
add ecx, eax
add ecx, dword [esp + 0x40]
mov eax, ebx
sar eax, 2
add eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
add eax, dword [esp + 0x28]
and dword [esp + 0x10], 3
and edx, 3
cmp ecx, dword [esp + 0x44]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], edx
jg 0x1c888a
cmp ecx, 1
jle 0x1c888a
mov edx, dword [esp + 0x14]
add edx, 0xffffffec
cmp eax, edx
jg 0x1c888a
cmp eax, 1
jle 0x1c888a
mov edx, dword [esp + 0x10]
mov edx, dword [edx*4 + 0x4e5fb4]
mov ebx, dword [esp + 0x28]
mov ebx, dword [ebx*4 + 0x4e5fb4]
add ebx, dword [esp + 0x48]
add edx, dword [esp + 0x2c]
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
mov ebx, dword [esp + 0x10]
sub eax, dword [ebx*4 + 0x4e5fa4]
mov ebx, dword [esp + 0x28]
imul eax, dword [esp + 0x18]
sub eax, dword [ebx*4 + 0x4e5fa4]
mov ebx, dword [esp + 0x38]
add eax, ecx
movzx ecx, word [ebp + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], eax
jmp 0x1c88a7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
push 1
push eax
push ebp
push ecx
lea ecx, [esp + 0x68]
call fcn.001c8100
mov edx, dword [esp + 0x58]
mov cl, byte [ebp + 0xb]
mov eax, dword [esp + 0x5c]
and edi, 3
add edi, edi
add edi, edi
and ebx, 3
or edi, ebx
and ecx, 1
mov ecx, dword [esp + ecx*4 + 0x50]
shr edx, 0x10
or dword [esp + 0x70], edx
mov dx, word [ebp + 0x1a]
shl edi, 0x13
or esi, edi
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x4c]
add ecx, dword [esi]
shl eax, 0x10
add ecx, dword [esp + 0x60]
or dword [esp + 0x78], eax
movsx eax, byte [ebp + 0x12]
mov dword [esp + 0x84], ecx
lea ecx, [edx + eax + 1]
xor edx, edx
sar ecx, 1
mov dh, cl
or dword [esp + 0x74], edx
cmp byte [ebp + 0x13], 0
jl 0x1c897a
mov cx, word [ebp + 0x10]
cmp cx, 0x80
je 0x1c8948
mov ax, word [ebp + 0x18]
cmp ax, 0x80
je 0x1c8948
movsx edx, byte [ebp + 0x13]
and eax, 0x1ff
shl eax, 9
and ecx, 0x1ff
or eax, ecx
lea ecx, [edx + 5]
mov esi, 1
shl esi, cl
shl eax, 0xd
add edx, 1
or eax, esi
or eax, edx
mov dword [esp + 0x7c], eax
jmp 0x1c897a
mov dx, word [ebp + 0x18]
movsx eax, byte [ebp + 0x13]
sar ecx, 1
and ecx, 0x1ff
mov esi, 1
sar edx, 1
and edx, 0x1ff
shl edx, 9
or edx, ecx
lea ecx, [eax + 4]
shl esi, cl
shl edx, 0xd
or edx, esi
or edx, eax
mov dword [esp + 0x7c], edx
mov edi, dword [esp + 0x94]
mov ecx, 8
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
add edi, 1
test byte [ebp + 1], 0xf0
mov dword [esp + 0x24], edi
je 0x1c89b9
add dword [esp + 0x94], 0x20
add ebp, 0x1c
cmp edi, 0x10
mov dword [esp + 0x74], 0
jb 0x1c856e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0xc
push 0x1c8440
jmp 0x1c89d1
push 0x1c8468
call fcn.003882d0
add esp, 4
lea eax, [edi + 1]
pop edi
mov dword [esi + 0x148], 1
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0xc