Function at 0x4c0d10
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 + 0x80]
push edi
mov edi, dword [esp + 0x7c]
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 edi
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4c0d5d
pop edi
mov eax, 1
pop ebp
add esp, 0x6c
ret
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x40]
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x30]
sub ebx, eax
mov eax, dword [esp + 0x48]
imul esi, ecx
sub eax, edx
imul edx, dword [esp + 0x9c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [esi + ecx*4]
add esi, dword [edi + 4]
mov edi, dword [esp + 0x3c]
lea edi, [edx + edi*4]
mov edx, dword [ebp + 4]
add edi, edx
mov dl, byte [esp + 0x28]
test dl, dl
je 0x4c106d
mov edx, ebx
mov ebp, ebx
sar edx, 3
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x34]
and ebp, 7
sub ecx, edx
mov edx, dword [esp + 0xa4]
add ecx, ebp
mov dword [esp + 0x94], ebp
lea ecx, [edx + ecx*4]
mov edx, ebp
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x9c]
sub edx, ebx
test eax, eax
lea edx, [ecx + edx*4]
mov dword [esp + 0x9c], edx
jle 0x4c11a6
mov dword [esp + 0xa0], eax
mov edx, dword [esp + 0x98]
test edx, edx
jle 0x4c0fe2
lea ecx, [edi + 0xa]
lea eax, [esi + 5]
mov ebp, edx
mov dl, byte [eax - 3]
mov bl, byte [eax - 4]
and dl, 0xf8
and bl, 0xfc
movzx dx, dl
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [esi]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [edi], dx
mov dl, byte [eax - 2]
shr dl, 4
mov byte [ecx - 8], dl
mov dl, byte [eax + 1]
mov bl, byte [eax]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax - 1]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx - 6], dx
mov dl, byte [eax + 2]
shr dl, 4
mov byte [ecx - 4], dl
mov dl, byte [eax + 5]
mov bl, byte [eax + 4]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 3]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx - 2], dx
mov dl, byte [eax + 6]
shr dl, 4
mov byte [ecx], dl
mov dl, byte [eax + 9]
mov bl, byte [eax + 8]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 7]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx + 2], dx
mov dl, byte [eax + 0xa]
shr dl, 4
mov byte [ecx + 4], dl
mov dl, byte [eax + 0xd]
mov bl, byte [eax + 0xc]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0xb]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx + 6], dx
mov dl, byte [eax + 0xe]
shr dl, 4
mov byte [ecx + 8], dl
mov dl, byte [eax + 0x11]
mov bl, byte [eax + 0x10]
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 + 0xf]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
add esi, 0x20
mov word [ecx + 0xa], dx
mov dl, byte [eax + 0x12]
shr dl, 4
mov byte [ecx + 0xc], dl
mov dl, byte [eax + 0x15]
mov bl, byte [eax + 0x14]
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 + 0x13]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
add eax, 0x20
mov word [ecx - 0x12], dx
mov dl, byte [eax - 0xa]
shr dl, 4
mov byte [ecx - 0x10], dl
mov dl, byte [eax - 7]
mov bl, byte [eax - 8]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax - 9]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx - 0xe], dx
mov dl, byte [eax - 6]
shr dl, 4
mov byte [ecx - 0xc], dl
dec ebp
jne 0x4c0e24
mov ebp, dword [esp + 0x94]
test ebp, ebp
jle 0x4c103c
mov ecx, edi
lea eax, [esi + 1]
mov dword [esp + 0xa4], ebp
mov dl, byte [eax + 1]
mov bl, byte [eax]
and dl, 0xf8
and bl, 0xfc
movzx dx, dl
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax - 1]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
add eax, 4
mov word [ecx], dx
mov dl, byte [eax - 2]
shr dl, 4
mov byte [ecx + 2], dl
mov edx, dword [esp + 0xa4]
add ecx, 4
dec edx
mov dword [esp + 0xa4], edx
jne 0x4c0ff2
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0xa0]
add edi, edx
add esi, ecx
dec eax
mov dword [esp + 0xa0], eax
jne 0x4c0e0d
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x6c
ret
mov ecx, dword [esp + 0x68]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xa4]
imul edx, dword [esp + 0x78]
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], edx
mov dword [esp + 0xa0], ecx
jle 0x4c11a6
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x84]
add eax, ecx
mov dword [esp + 0xa0], eax
js 0x4c1106
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 ebx, ebx
jle 0x4c1181
mov eax, edi
mov ebp, ebx
jmp 0x4c111f
mov ecx, dword [esp + 0x98]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x98], ecx
js 0x4c113c
mov edx, dword [esp + 0x18]
add esi, 4
sub ecx, edx
mov dword [esp + 0x98], ecx
mov dl, byte [esi + 2]
xor cx, cx
and dl, 0xf8
add eax, 4
mov cl, dl
mov dl, byte [esi + 1]
and dl, 0xfc
movzx dx, dl
shl ecx, 5
or ecx, edx
mov dl, byte [esi]
shr dl, 3
movzx dx, dl
shl ecx, 3
or ecx, edx
mov word [eax - 4], cx
mov cl, byte [esi + 3]
shr cl, 4
mov byte [eax - 2], cl
mov ecx, dword [esp + 0x1c]
add esi, ecx
dec ebp
jne 0x4c1118
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x9c]
add edi, ecx
lea esi, [eax + edx]
mov eax, dword [esp + 0x94]
dec eax
mov dword [esp + 0x94], eax
jne 0x4c10d4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x6c
ret