Function at 0x4baa70
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 eax
push ecx
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push ebx
push eax
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4baabb
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x3c]
mov eax, dword [edx + 8]
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
imul eax, edi
sub ebp, ecx
mov ecx, dword [esp + 0x48]
sub ecx, esi
imul esi, dword [esp + 0xa4]
lea eax, [eax + edx*4]
mov dword [esp + 0x1c], edi
add eax, dword [ebx + 4]
mov ebx, dword [esp + 0x3c]
lea esi, [esi + ebx*2]
mov ebx, dword [esp + 0x8c]
add esi, dword [ebx + 4]
mov bl, byte [esp + 0x28]
test bl, bl
je 0x4bad9a
mov ebx, ebp
and ebx, 7
mov dword [esp + 0xa0], ebx
mov ebx, ebp
sar ebx, 3
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x34]
sub edx, ebx
mov ebx, dword [esp + 0xa0]
add edx, ebx
lea edx, [edi + edx*4]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x98], edx
mov edx, ebx
sub edx, ebp
test ecx, ecx
lea edx, [edi + edx*2]
mov dword [esp + 0x9c], edx
jle 0x4baebf
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0xa4], ecx
test ebp, ebp
jle 0x4bad18
mov edi, ebp
mov cx, word [eax]
xor edx, edx
mov dl, ch
and dl, 0xf8
shr ecx, 3
movzx dx, dl
and cl, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 4]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 8]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 0xc]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax + 0x10]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax - 0xc]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax - 8]
and cl, 0x1f
movzx cx, cl
shl edx, 3
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, 0xfc
movzx cx, cl
shl edx, 5
or edx, ecx
mov cl, byte [eax - 4]
and cl, 0x1f
movzx cx, cl
shl edx, 3
or edx, ecx
dec edi
mov word [esi - 2], dx
jne 0x4bab86
test ebx, ebx
jle 0x4bad69
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, 0xfc
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [edi - 4]
and cl, 0x1f
movzx cx, cl
shl ebx, 3
or ebx, ecx
dec edx
mov word [ebp - 2], bx
jne 0x4bad22
mov ebp, dword [esp + 0x8c]
mov ebx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa4]
add esi, edi
add eax, edx
dec ecx
mov dword [esp + 0xa4], ecx
jne 0x4bab7c
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 + 0x18], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x60]
imul edx, edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x6c]
test ecx, ecx
mov dword [esp + 0x20], edx
jle 0x4baebf
mov dword [esp + 0x9c], ecx
jmp 0x4badfd
mov ebx, dword [esp + 0x8c]
add ebx, dword [esp + 0x98]
mov dword [esp + 0x8c], ebx
js 0x4bae1f
mov ecx, dword [esp + 0x94]
add eax, edi
sub ebx, ecx
mov dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x24], eax
test ebp, ebp
jle 0x4bae9b
mov edi, esi
mov edx, ebp
jmp 0x4bae3b
mov ecx, dword [esp + 0xa0]
add ecx, dword [esp + 0x10]
mov dword [esp + 0xa0], ecx
js 0x4bae58
mov ebx, dword [esp + 0x14]
add eax, 4
sub ecx, ebx
mov dword [esp + 0xa0], 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, 0xfc
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax]
and cl, 0x1f
movzx cx, cl
shl ebx, 3
or ebx, ecx
mov ecx, dword [esp + 0x18]
mov word [edi - 2], bx
add eax, ecx
dec edx
jne 0x4bae34
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
add eax, edx
add esi, ebx
dec ecx
mov dword [esp + 0x9c], ecx
jne 0x4badf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6c
ret