Function at 0x4b6b70
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 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 ebx
push esi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4b6bbd
pop esi
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x40]
push ebp
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x30]
sub edi, ecx
mov ecx, dword [esp + 0x40]
imul esi, eax
sub edx, ecx
imul ecx, dword [esp + 0xa0]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x2c]
lea ebp, [eax + eax*2]
add esi, ebp
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x3c]
add esi, ebp
lea ecx, [ecx + ebx*2]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [ebx + 4]
mov bl, byte [esp + 0x28]
add ecx, ebp
test bl, bl
je 0x4b6e6d
mov ebx, edi
mov ebp, edi
sar ebx, 3
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x34]
and ebp, 7
sub eax, ebx
mov ebx, dword [esp + 0xa4]
add eax, ebp
mov dword [esp + 0x98], ebp
lea ebx, [ebx + eax*2]
add eax, ebx
mov dword [esp + 0x94], eax
mov eax, ebp
sub eax, edi
mov edi, dword [esp + 0xa0]
test edx, edx
lea eax, [edi + eax*2]
mov dword [esp + 0xa4], eax
jle 0x4b6f97
mov dword [esp + 0x8c], edx
mov edi, dword [esp + 0x9c]
test edi, edi
jle 0x4b6df9
lea eax, [esi + 5]
mov bl, byte [esi]
mov dl, byte [eax - 4]
and bl, 0xf8
and dl, 0xfc
movzx bx, bl
movzx dx, dl
shl ebx, 5
or edx, ebx
mov bl, byte [eax - 3]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx], dx
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
mov word [ecx + 2], dx
mov dl, byte [eax + 1]
mov bl, byte [eax + 2]
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 + 4], dx
mov dl, byte [eax + 4]
mov bl, byte [eax + 5]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [eax + 6]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [ecx + 6], dx
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 + 8], dx
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]
shl edx, 3
shr bl, 3
movzx bx, bl
or edx, ebx
add esi, 0x18
mov word [ecx + 0xa], dx
mov dl, byte [eax + 0xd]
mov bl, byte [eax + 0xe]
and dl, 0xf8
movzx dx, dl
and bl, 0xfc
add ecx, 0x10
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 eax, 0x18
mov word [ecx - 4], dx
mov dl, byte [eax - 8]
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 - 6]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
dec edi
mov word [ecx - 2], dx
jne 0x4b6c8c
test ebp, ebp
jle 0x4b6e3c
mov edi, ecx
lea eax, [esi + 2]
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, 3
mov word [edi], dx
add edi, 2
dec ebp
jne 0x4b6e02
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0xa4]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x8c]
add ecx, edi
add esi, edx
dec eax
mov dword [esp + 0x8c], eax
jne 0x4b6c7a
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x60]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x94], ebx
imul eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x6c]
test edx, edx
mov dword [esp + 0x8c], ebx
jle 0x4b6f97
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x94]
add edx, ebx
mov dword [esp + 0x8c], edx
js 0x4b6f02
mov ebp, dword [esp + 0xa4]
mov ebx, dword [esp + 0x84]
add esi, ebp
sub edx, ebx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], esi
test edi, edi
jle 0x4b6f72
mov eax, ecx
mov ebp, edi
jmp 0x4b6f1b
mov edx, dword [esp + 0x9c]
add edx, dword [esp + 0x14]
mov dword [esp + 0x9c], edx
js 0x4b6f38
mov ebx, dword [esp + 0x18]
add esi, 3
sub edx, ebx
mov dword [esp + 0x9c], edx
mov dl, byte [esi]
mov bl, byte [esi + 1]
and dl, 0xf8
and bl, 0xfc
movzx dx, dl
movzx bx, bl
shl edx, 5
or edx, ebx
mov bl, byte [esi + 2]
shr bl, 3
movzx bx, bl
shl edx, 3
or edx, ebx
mov word [eax], dx
mov edx, dword [esp + 0x1c]
add esi, edx
add eax, 2
dec ebp
jne 0x4b6f14
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0xa0]
add ecx, ebx
lea esi, [edx + eax]
mov edx, dword [esp + 0x98]
dec edx
mov dword [esp + 0x98], edx
jne 0x4b6ed0
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x6c
ret