Function at 0x4baed0
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 + 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 ebx
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4baf1d
pop edi
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov edx, dword [ebx + 8]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x40]
imul edx, eax
push esi
mov esi, dword [esp + 0x40]
sub ebp, ecx
mov ecx, dword [esp + 0x48]
sub ecx, esi
imul esi, dword [esp + 0x9c]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa0]
lea eax, [eax + edx*4]
add eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
lea esi, [esi + edi*2]
mov edi, dword [ebx + 4]
mov bl, byte [esp + 0x28]
add esi, edi
test bl, bl
je 0x4bb1f7
mov edi, ebp
mov ebx, ebp
sar edi, 3
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x34]
and ebx, 7
sub edx, edi
mov edi, dword [esp + 0xa4]
add edx, ebx
mov dword [esp + 0x98], ebx
lea edx, [edi + edx*4]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x94], edx
mov edx, ebx
sub edx, ebp
test ecx, ecx
lea edx, [edi + edx*2]
mov dword [esp + 0x9c], edx
jle 0x4bb325
mov dword [esp + 0xa4], ecx
mov edi, dword [esp + 0xa0]
test edi, edi
jle 0x4bb17c
mov cx, word [eax]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi], dx
mov cx, word [eax + 4]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 4]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi + 2], dx
mov cx, word [eax + 8]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 8]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi + 4], dx
mov cx, word [eax + 0xc]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 0xc]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi + 6], dx
mov cx, word [eax + 0x10]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 0x10]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi + 8], dx
mov cx, word [eax + 0x14]
xor edx, edx
add esi, 0x10
mov dl, ch
add eax, 0x20
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax - 0xc]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi - 6], dx
mov cx, word [eax - 8]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax - 8]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
mov word [esi - 4], dx
mov cx, word [eax - 4]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xf8
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax - 4]
and cl, 0x1f
movzx cx, cl
shl edx, 2
or edx, ecx
dec edi
mov word [esi - 2], dx
jne 0x4bafea
test ebx, ebx
jle 0x4bb1c6
mov ebp, esi
mov edi, eax
mov edx, ebx
mov cx, word [edi]
xor ebx, ebx
mov bl, ch
add edi, 4
and bl, 0xf8
add ebp, 2
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [edi - 4]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
dec edx
mov word [ebp - 2], bx
jne 0x4bb186
mov ebx, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0xa4]
add esi, edi
add eax, edx
dec ecx
mov dword [esp + 0xa4], ecx
jne 0x4bafdb
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
shl edx, 2
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xa4]
imul edx, dword [esp + 0x78]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x6c]
test ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xa0], edi
jle 0x4bb325
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x84]
add ecx, edi
mov dword [esp + 0xa0], ecx
js 0x4bb28c
mov ebx, dword [esp + 0xa4]
mov edi, dword [esp + 0x8c]
add eax, ebx
sub ecx, edi
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
test ebp, ebp
jle 0x4bb301
mov edi, esi
mov edx, ebp
jmp 0x4bb2a5
mov ecx, dword [esp + 0x98]
add ecx, dword [esp + 0x14]
mov dword [esp + 0x98], ecx
js 0x4bb2c2
mov ebx, dword [esp + 0x18]
add eax, 4
sub ecx, ebx
mov dword [esp + 0x98], ecx
mov cx, word [eax]
xor ebx, ebx
mov bl, ch
add edi, 2
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov ecx, dword [esp + 0x1c]
mov word [edi - 2], bx
add eax, ecx
dec edx
jne 0x4bb29e
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
add eax, edx
add esi, edi
dec ecx
mov dword [esp + 0x94], ecx
jne 0x4bb25a
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret