Function at 0x4c2160
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 ebx
mov ebx, dword [esp + 0x78]
push ebp
mov ebp, 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 ebx
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c21ad
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebx + 8]
push esi
mov esi, dword [esp + 0x38]
sub edx, esi
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x98], esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x40]
imul esi, ecx
sub eax, edi
imul edi, dword [esp + 0x9c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [esi + ecx*4]
add esi, dword [ebx + 4]
mov ebx, dword [esp + 0x3c]
lea edi, [edi + ebx*4]
mov ebx, dword [ebp + 4]
add edi, ebx
mov bl, byte [esp + 0x28]
test bl, bl
je 0x4c24c8
mov ebp, edx
mov ebx, edx
sar ebp, 3
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0x34]
and ebx, 7
sub ecx, ebp
mov ebp, dword [esp + 0xa4]
add ecx, ebx
mov dword [esp + 0xa0], ebx
lea ecx, [ebp + ecx*4]
mov dword [esp + 0x84], ecx
mov ecx, ebx
sub ecx, edx
mov edx, dword [esp + 0x9c]
test eax, eax
lea ecx, [edx + ecx*4]
mov dword [esp + 0x94], ecx
jle 0x4c25fb
mov dword [esp + 0x9c], eax
mov ebp, dword [esp + 0x98]
test ebp, ebp
jle 0x4c2431
lea ecx, [edi + 0xa]
lea eax, [esi + 6]
mov bl, byte [esi]
mov dl, byte [eax - 5]
and bl, 0xf8
and dl, 0xf8
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, 2
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, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax]
shr bl, 3
movzx bx, bl
shl edx, 2
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, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 4]
shr bl, 3
movzx bx, bl
shl edx, 2
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, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 8]
shr bl, 3
movzx bx, bl
shl edx, 2
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, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0xc]
shr bl, 3
movzx bx, bl
shl edx, 2
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, 0xf8
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, 2
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, 0xf8
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, 2
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, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax - 8]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
mov word [ecx - 0xe], dx
mov dl, byte [eax - 7]
shr dl, 4
mov byte [ecx - 0xc], dl
dec ebp
jne 0x4c2273
mov ebx, dword [esp + 0xa0]
test ebx, ebx
jle 0x4c2497
mov ebp, edi
mov ecx, edi
lea eax, [esi + 2]
sub ebp, esi
mov dword [esp + 0xa4], ebx
mov dl, byte [eax - 2]
mov bl, byte [eax - 1]
and dl, 0xf8
and bl, 0xf8
movzx dx, dl
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax]
shr bl, 3
movzx bx, bl
shl edx, 2
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 + 0xa4]
add ecx, 4
dec edx
mov dword [esp + 0xa4], edx
jne 0x4c2445
mov ebx, dword [esp + 0xa0]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x9c]
add edi, edx
add esi, ecx
dec eax
mov dword [esp + 0x9c], eax
jne 0x4c225e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0xa4]
shl ecx, 2
imul ebx, dword [esp + 0x78]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0xa0], ecx
jle 0x4c25fb
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x84]
add eax, ecx
mov dword [esp + 0xa0], eax
js 0x4c255d
mov ebp, dword [esp + 0xa4]
mov ecx, dword [esp + 0x8c]
add esi, ebp
sub eax, ecx
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], esi
test edx, edx
jle 0x4c25d6
mov eax, edi
mov ebp, edx
jmp 0x4c2576
mov ecx, dword [esp + 0x98]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x98], ecx
js 0x4c2593
mov ebx, dword [esp + 0x18]
add esi, 4
sub ecx, ebx
mov dword [esp + 0x98], ecx
mov cl, byte [esi]
mov bl, byte [esi + 1]
and cl, 0xf8
and bl, 0xf8
movzx cx, cl
movzx bx, bl
shl ecx, 5
or ecx, ebx
mov bl, byte [esi + 2]
shr bl, 3
movzx bx, bl
shl ecx, 2
or ecx, ebx
mov word [eax], cx
mov cl, byte [esi + 3]
shr cl, 4
mov byte [eax + 2], cl
mov ecx, dword [esp + 0x1c]
add esi, ecx
add eax, 4
dec ebp
jne 0x4c256f
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
add edi, ecx
lea esi, [eax + ebx]
mov eax, dword [esp + 0x94]
dec eax
mov dword [esp + 0x94], eax
jne 0x4c252b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret