Function at 0x4c0130
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 0x4c017d
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret
push esi
mov esi, dword [esp + 0x38]
mov edx, dword [ebx + 8]
push edi
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
sub edi, esi
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0x30]
sub eax, ecx
imul ecx, dword [esp + 0x9c]
imul esi, edx
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x2c]
lea esi, [esi + edx*4]
add esi, dword [ebx + 4]
mov ebx, dword [esp + 0x3c]
lea ecx, [ecx + ebx*2]
mov ebx, dword [ebp + 4]
add ecx, ebx
mov bl, byte [esp + 0x28]
test bl, bl
je 0x4c0420
mov ebx, edi
mov ebp, edi
sar ebx, 3
mov dword [esp + 0xa0], ebx
mov ebx, dword [esp + 0x34]
and ebp, 7
sub edx, ebx
mov ebx, dword [esp + 0xa4]
add edx, ebp
mov dword [esp + 0x98], ebp
lea edx, [ebx + edx*4]
mov dword [esp + 0x94], edx
mov edx, ebp
sub edx, edi
mov edi, dword [esp + 0x9c]
test eax, eax
lea edx, [edi + edx*2]
mov dword [esp + 0x9c], edx
jle 0x4c0549
mov dword [esp + 0xa4], eax
mov edi, dword [esp + 0xa0]
test edi, edi
jle 0x4c03ac
lea eax, [esi + 5]
mov dl, byte [eax - 3]
mov bl, byte [eax - 4]
and dl, 0xf8
and bl, 0xf8
movzx dx, dl
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [esi]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
mov word [ecx], dx
mov dl, byte [eax + 1]
mov bl, byte [eax]
and dl, 0xf8
and bl, 0xf8
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, 2
or edx, ebx
mov word [ecx + 2], dx
mov dl, byte [eax + 5]
mov bl, byte [eax + 4]
and dl, 0xf8
movzx dx, dl
and bl, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 3]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
mov word [ecx + 4], dx
mov dl, byte [eax + 9]
mov bl, byte [eax + 8]
and dl, 0xf8
movzx dx, dl
and bl, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 7]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
mov word [ecx + 6], dx
mov dl, byte [eax + 0xd]
mov bl, byte [eax + 0xc]
and dl, 0xf8
movzx dx, dl
and bl, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0xb]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
mov word [ecx + 8], dx
mov dl, byte [eax + 0x11]
mov bl, byte [eax + 0x10]
and dl, 0xf8
movzx dx, dl
and bl, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0xf]
shl edx, 2
shr bl, 3
movzx bx, bl
or edx, ebx
add esi, 0x20
mov word [ecx + 0xa], dx
mov dl, byte [eax + 0x15]
mov bl, byte [eax + 0x14]
and dl, 0xf8
movzx dx, dl
and bl, 0xf8
add ecx, 0x10
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 0x13]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
add eax, 0x20
mov word [ecx - 4], dx
mov dl, byte [eax - 7]
mov bl, byte [eax - 8]
and dl, 0xf8
movzx dx, dl
and bl, 0xf8
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax - 9]
shr bl, 3
movzx bx, bl
shl edx, 2
or edx, ebx
dec edi
mov word [ecx - 2], dx
jne 0x4c023f
test ebp, ebp
jle 0x4c03ef
mov edi, ecx
lea eax, [esi + 1]
mov dl, byte [eax + 1]
mov bl, byte [eax]
and dl, 0xf8
and bl, 0xf8
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, 2
or edx, ebx
add eax, 4
mov word [edi], dx
add edi, 2
dec ebp
jne 0x4c03b5
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0xa4]
add ecx, edi
add esi, edx
dec eax
mov dword [esp + 0xa4], eax
jne 0x4c022d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
shl edx, 2
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xa4]
imul edx, dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xa0], ebx
jle 0x4c0549
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x84]
add eax, ebx
mov dword [esp + 0xa0], eax
js 0x4c04b5
mov ebp, dword [esp + 0xa4]
mov ebx, dword [esp + 0x8c]
add esi, ebp
sub eax, ebx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], esi
test edi, edi
jle 0x4c0524
mov edx, ecx
mov ebp, edi
jmp 0x4c04ce
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x14]
mov dword [esp + 0x98], eax
js 0x4c04eb
mov ebx, dword [esp + 0x18]
add esi, 4
sub eax, ebx
mov dword [esp + 0x98], eax
mov al, byte [esi + 2]
mov bl, byte [esi + 1]
and al, 0xf8
and bl, 0xf8
movzx ax, al
movzx bx, bl
shl eax, 5
or eax, ebx
mov bl, byte [esi]
shr bl, 3
movzx bx, bl
shl eax, 2
or eax, ebx
mov word [edx], ax
mov eax, dword [esp + 0x1c]
add esi, eax
add edx, 2
dec ebp
jne 0x4c04c7
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x9c]
add ecx, ebx
lea esi, [eax + edx]
mov eax, dword [esp + 0x94]
dec eax
mov dword [esp + 0x94], eax
jne 0x4c0483
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret