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

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0x6c
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
push ebp
push esi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c1cfd
pop esi
mov eax, 1
pop ebp
add esp, 0x6c
ret
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x30]
sub eax, edi
imul edi, dword [esp + 0xa0]
mov edx, dword [esp + 0x3c]
imul esi, ecx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
sub ebx, edx
lea edi, [edi + edx*4]
mov edx, dword [esp + 0x8c]
lea esi, [esi + ecx*4]
add esi, dword [ebp + 4]
mov ebp, dword [edx + 4]
mov dl, byte [esp + 0x28]
add edi, ebp
test dl, dl
je 0x4c201b
mov ebp, ebx
mov edx, ebx
sar ebp, 3
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0x34]
and edx, 7
sub ecx, ebp
mov ebp, dword [esp + 0xa4]
add ecx, edx
mov dword [esp + 0x9c], edx
lea ecx, [ebp + ecx*4]
mov dword [esp + 0x94], ecx
mov ecx, edx
sub ecx, ebx
mov ebx, dword [esp + 0xa0]
test eax, eax
lea ecx, [ebx + ecx*4]
mov dword [esp + 0xa0], ecx
jle 0x4c2154
mov dword [esp + 0xa4], eax
mov ebp, dword [esp + 0x98]
test ebp, ebp
jle 0x4c1f84
lea ecx, [edi + 0xa]
lea eax, [esi + 6]
mov bl, byte [esi]
mov dl, byte [eax - 5]
and bl, 0xf8
and dl, 0xfc
movzx bx, bl
movzx dx, dl
shl ebx, 5
or edx, ebx
mov bl, byte [eax - 4]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [edi], dx
mov dl, byte [eax - 3]
shr dl, 4
mov byte [ecx - 8], dl
mov dl, byte [eax - 2]
mov bl, byte [eax - 1]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx - 6], dx
mov dl, byte [eax + 1]
shr dl, 4
mov byte [ecx - 4], dl
mov dl, byte [eax + 2]
mov bl, byte [eax + 3]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 4]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx - 2], dx
mov dl, byte [eax + 5]
shr dl, 4
mov byte [ecx], dl
mov dl, byte [eax + 6]
mov bl, byte [eax + 7]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 8]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx + 2], dx
mov dl, byte [eax + 9]
shr dl, 4
mov byte [ecx + 4], dl
mov dl, byte [eax + 0xa]
mov bl, byte [eax + 0xb]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0xc]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx + 6], dx
mov dl, byte [eax + 0xd]
shr dl, 4
mov byte [ecx + 8], dl
mov dl, byte [eax + 0xe]
mov bl, byte [eax + 0xf]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
add edi, 0x20
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0x10]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
add esi, 0x20
mov word [ecx + 0xa], dx
mov dl, byte [eax + 0x11]
shr dl, 4
mov byte [ecx + 0xc], dl
mov dl, byte [eax + 0x12]
mov bl, byte [eax + 0x13]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
add ecx, 0x20
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0x14]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
add eax, 0x20
mov word [ecx - 0x12], dx
mov dl, byte [eax - 0xb]
shr dl, 4
mov byte [ecx - 0x10], dl
mov dl, byte [eax - 0xa]
mov bl, byte [eax - 9]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax - 8]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx - 0xe], dx
mov dl, byte [eax - 7]
shr dl, 4
mov byte [ecx - 0xc], dl
dec ebp
jne 0x4c1dc6
mov edx, dword [esp + 0x9c]
test edx, edx
jle 0x4c1fea
mov ebp, edi
mov ecx, edi
lea eax, [esi + 2]
sub ebp, esi
mov dword [esp + 0x8c], edx
mov dl, byte [eax - 2]
mov bl, byte [eax - 1]
and dl, 0xf8
and bl, 0xfc
movzx dx, dl
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
add eax, 4
mov word [ecx], dx
mov dl, byte [eax - 3]
shr dl, 4
mov byte [eax + ebp - 4], dl
mov edx, dword [esp + 0x8c]
add ecx, 4
dec edx
mov dword [esp + 0x8c], edx
jne 0x4c1f98
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0xa4]
add edi, ebx
add esi, ecx
dec eax
mov dword [esp + 0xa4], eax
jne 0x4c1db1
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x6c
ret
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0xa4]
imul ebp, dword [esp + 0x78]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], edx
jle 0x4c2154
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
add eax, ecx
mov dword [esp + 0x8c], eax
js 0x4c20b4
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x84]
add esi, edx
sub eax, ecx
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], esi
test ebx, ebx
jle 0x4c212f
mov eax, edi
mov ebp, ebx
jmp 0x4c20cd
mov ecx, dword [esp + 0x9c]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], ecx
js 0x4c20ea
mov edx, dword [esp + 0x18]
add esi, 4
sub ecx, edx
mov dword [esp + 0x9c], ecx
mov cl, byte [esi]
xor dx, dx
and cl, 0xf8
add eax, 4
mov dl, cl
mov cl, byte [esi + 1]
and cl, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [esi + 2]
shr cl, 3
movzx cx, cl
shl edx, 3
or edx, ecx
mov ecx, dword [esp + 0x1c]
mov word [eax - 4], dx
mov dl, byte [esi + 3]
shr dl, 4
mov byte [eax - 2], dl
add esi, ecx
dec ebp
jne 0x4c20c6
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xa0]
add edi, ecx
lea esi, [eax + ebp]
mov eax, dword [esp + 0x98]
dec eax
mov dword [esp + 0x98], eax
jne 0x4c2082
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x6c
ret