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

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x84]
mov ecx, dword [esi + 0x19c]
mov ebx, eax
mov al, byte [ebp + 1]
and al, 3
cmp dword [esi + 0x1c0], 0
push edi
mov dword [esp + 0x20], 0
lea edi, [ecx + ecx]
jne 0x1c8a78
mov edi, ecx
mov dword [esp + 0x4c], ecx
xor ecx, ecx
mov edx, dword [esi + 0x1b4]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
movzx eax, al
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [0x4f0504]
mov ecx, dword [ecx + eax*4]
or ecx, eax
mov eax, dword [eax*4 + 0x4288f0]
add dword [ebx], eax
mov dword [esp + 0x6c], ecx
movzx ecx, byte [ebp]
mov eax, ecx
shr eax, 5
mov ebx, ecx
shr ebx, 4
and eax, ebx
mov ebx, dword [esi + 0x1c4]
imul ebx, dword [esi + 0x19c]
and eax, 1
imul eax, edi
add eax, ebx
add eax, dword [esi + 0x198]
shr edx, 1
test cl, 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], eax
je 0x1c8b1d
shr edx, 1
lea ecx, [edi + edi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x20]
jmp 0x1c8b30
mov esi, dword [esp + 0x88]
lea ebx, [ebx]
test byte [ebp + 2], 0xee
je 0x1c8fc2
movzx edx, byte [ebp + 8]
cmp dword [esi + edx*8 + 0x3e8], 0xffffffff
lea eax, [esi + edx*8 + 0x3e8]
mov dword [esp + 0x30], eax
jne 0x1c8b5d
cmp dword [eax + 4], 0
je 0x1c8fc9
movsx eax, word [ebp + 0xe]
movsx edi, word [ebp + 0xc]
movzx ecx, word [ebp + 4]
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 3]
mov esi, eax
shr eax, 5
mov ebx, eax
movzx eax, byte [ebp + 2]
mov edx, eax
shr eax, 4
mov dword [esp + 0x24], eax
and esi, 0xf
mov eax, edi
sar eax, 3
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x14]
add ecx, esi
mov dword [esp + 0x38], esi
movzx esi, word [ebp + 6]
shr esi, 1
sar eax, 3
add eax, esi
add eax, ebx
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x88]
mov ebx, dword [ebx + 0x1a0]
and edx, 0xf
add ebx, 0xffffffee
add edx, edx
cmp ecx, ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], ebx
jg 0x1c8c3d
test ecx, ecx
jl 0x1c8c3d
mov ebx, dword [esp + 0x18]
add ebx, 0xffffffee
cmp eax, ebx
jg 0x1c8c3d
test eax, eax
jl 0x1c8c3d
mov ebx, dword [esp + 0x14]
and ebx, 7
mov ebx, dword [ebx*4 + 0x4e5f64]
add ebx, dword [esp + 0x24]
mov dword [esp + 0x54], 0
shl ebx, 0x18
mov dword [esp + 0x2c], ebx
mov ebx, edi
and ebx, 7
mov ebx, dword [ebx*4 + 0x4e5f84]
add ebx, edx
mov edx, dword [esp + 0x2c]
shl ebx, 0x10
or edx, ebx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x10]
imul eax, edx
add eax, ecx
movzx ecx, word [ebp + 4]
mov dword [esp + 0x58], eax
mov eax, esi
imul eax, edx
add eax, ecx
mov dword [esp + 0x5c], eax
jmp 0x1c8c56
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
push 0
push eax
push ebp
push ecx
lea ecx, [esp + 0x60]
call fcn.001c8ff0
movzx eax, byte [ebp]
movzx ecx, byte [ebp + 2]
movzx edx, byte [ebp + 3]
mov esi, eax
and esi, 0xfffffff0
shl esi, 0xd
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, 7
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 + 0x30]
add esi, esi
or esi, eax
mov eax, dword [esp + 0x14]
add esi, esi
and edx, 0xc0
or esi, edx
mov dl, byte [ebp + 9]
or esi, edi
add esi, esi
and eax, 7
add esi, esi
add esi, esi
or esi, eax
and edx, 1
mov eax, dword [esp + edx*4 + 0x48]
add eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
add eax, dword [ecx]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x34]
add ecx, edx
xor edx, edx
test byte [ebp], 4
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
jne 0x1c8d63
xor eax, eax
mov ah, byte [ebp + 0x14]
or dword [esp + 0x6c], eax
cmp word [ebp + 0x16], dx
jl 0x1c8f7b
movsx eax, word [ebp + 0x16]
lea ecx, [eax + 4]
mov esi, 1
shl esi, cl
mov cx, word [ebp + 0x10]
and ecx, 0x1ff
shl ecx, 0xd
or esi, ecx
mov cl, byte [ebp + 0x15]
or esi, eax
mov ax, word [ebp + 0x12]
mov dword [esp + 0x74], esi
and ecx, 0xff
and eax, 0x1ff
shl eax, 8
or eax, ecx
mov dword [esp + 0x80], eax
jmp 0x1c8f7b
movsx edi, word [ebp + 0x18]
movzx eax, word [ebp + 4]
movsx ebx, word [ebp + 0x1a]
mov ecx, edi
sar ecx, 3
lea ecx, [eax + ecx*2]
add ecx, dword [esp + 0x38]
mov eax, ebx
sar eax, 3
add eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
add eax, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x40]
jg 0x1c8df7
cmp ecx, edx
jl 0x1c8df7
mov ecx, dword [esp + 0x18]
add ecx, 0xffffffee
cmp eax, ecx
jg 0x1c8df7
cmp eax, edx
jl 0x1c8df7
imul eax, dword [esp + 0x10]
add eax, dword [esp + 0x38]
mov dword [esp + 0x54], edx
mov edx, ebx
and edx, 7
mov ecx, dword [edx*4 + 0x4e5f64]
add ecx, dword [esp + 0x24]
mov edx, edi
and edx, 7
mov edx, dword [edx*4 + 0x4e5f84]
add edx, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, word [ebp + 4]
add eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], eax
jmp 0x1c8e14
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
push 1
push eax
push ebp
push ecx
lea ecx, [esp + 0x60]
call fcn.001c8ff0
mov ecx, dword [esp + 0x50]
mov dx, word [ebp + 0x20]
mov eax, dword [esp + 0x54]
shr ecx, 0x10
or dword [esp + 0x68], ecx
movsx ecx, byte [ebp + 0x14]
and edi, 7
add edi, edi
lea edx, [edx + ecx + 1]
xor ecx, ecx
add edi, edi
sar edx, 1
add edi, edi
mov ch, dl
and ebx, 7
or edi, ebx
shl edi, 0x15
shl eax, 0x10
or dword [esp + 0x70], eax
or esi, edi
or dword [esp + 0x6c], ecx
cmp word [ebp + 0x16], 0
mov dword [esp + 0x60], esi
jl 0x1c8f55
mov cx, word [ebp + 0x10]
cmp cx, 0x80
je 0x1c8ee7
mov ax, word [ebp + 0x1c]
cmp ax, 0x80
je 0x1c8ee7
mov si, word [ebp + 0x12]
cmp si, 0x80
je 0x1c8ee7
mov dx, word [ebp + 0x1e]
cmp dx, 0x80
je 0x1c8ee7
movsx edi, word [ebp + 0x16]
and eax, 0x1ff
shl eax, 9
and ecx, 0x1ff
or eax, ecx
lea ecx, [edi + 5]
shl eax, 0xd
mov ebx, 1
shl ebx, cl
movsx ecx, byte [ebp + 0x15]
or eax, ebx
add edi, 1
or eax, edi
mov dword [esp + 0x74], eax
mov ax, word [ebp + 0x22]
and edx, 0x1ff
shl edx, 9
and esi, 0x1ff
or edx, esi
shl edx, 8
lea eax, [eax + ecx + 1]
sar eax, 1
and eax, 0xff
or edx, eax
mov dword [esp + 0x80], edx
jmp 0x1c8f55
mov dx, word [ebp + 0x1c]
movsx eax, word [ebp + 0x16]
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
mov cx, word [ebp + 0x12]
shl edx, 0xd
or edx, esi
or edx, eax
mov ax, word [ebp + 0x1e]
mov dword [esp + 0x74], edx
mov dx, word [ebp + 0x22]
sar ecx, 1
and ecx, 0x1ff
sar eax, 1
and eax, 0x1ff
shl eax, 9
or eax, ecx
movsx ecx, byte [ebp + 0x15]
lea edx, [edx + ecx + 1]
sar edx, 1
shl eax, 8
and edx, 0xff
or eax, edx
mov dword [esp + 0x80], eax
mov al, byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xa]
and eax, 1
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x88]
add edx, dword [eax + ecx*8 + 0x3e8]
add edx, dword [esp + 0x58]
mov dword [esp + 0x7c], edx
xor edx, edx
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x90]
mov ecx, 9
lea esi, [esp + 0x60]
add ebx, 1
rep movsd dword es:[edi], dword [esi]
test byte [ebp + 1], 0xf0
mov dword [esp + 0x20], ebx
je 0x1c8fb6
add dword [esp + 0x90], 0x24
add ebp, 0x24
cmp ebx, 0x10
mov dword [esp + 0x6c], edx
jb 0x1c8b23
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x74
ret 0xc
push 0x1c89f0
jmp 0x1c8fce
push 0x1c8a18
call fcn.003882d0
add esp, 4
pop edi
mov dword [esi + 0x148], 1
pop esi
pop ebp
lea eax, [ebx + 1]
pop ebx
add esp, 0x74
ret 0xc