Function at 0x4afb00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x4afb50
mov eax, dword [esi]
cmp dword [eax + 0x78], 0
jne 0x4afb3c
cmp dword [esi + 0xb8], 0
jne 0x4afb3c
mov edi, dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.004b0600
add esp, 0xc
jmp 0x4afe36
mov edi, dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.004af7a0
add esp, 0xc
jmp 0x4afe36
cmp eax, 2
jne 0x4afb8e
mov eax, dword [esi]
cmp dword [eax + 0x78], 0
jne 0x4afb7a
cmp dword [esi + 0xb8], 0
jne 0x4afb7a
mov edi, dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.004b07e0
add esp, 0xc
jmp 0x4afe36
mov edi, dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.004af910
add esp, 0xc
jmp 0x4afe36
mov al, byte [ebx + 2]
mov ebp, 0xffff8000
mov edi, dword [esp + 0x28]
mov byte [esp + 0x30], al
cmp al, byte [esi + 0xd0]
je 0x4afc63
shr al, 3
and al, 1
movzx eax, al
push eax
push 0
push esi
call fcn.004b1320
add esp, 8
movzx eax, al
push eax
push edi
call fcn.00440ac0
mov al, byte [esp + 0x3c]
add esp, 0xc
shr al, 2
and al, 1
movzx eax, al
push eax
push 1
push esi
call fcn.004b1320
add esp, 8
movzx eax, al
push eax
push edi
call fcn.00440ac0
mov al, byte [esp + 0x3c]
add esp, 0xc
shr al, 1
and al, 1
movzx eax, al
push eax
push 2
push esi
call fcn.004b1320
add esp, 8
movzx eax, al
push eax
push edi
call fcn.00440ac0
mov al, byte [esp + 0x3c]
add esp, 0xc
and al, 1
movzx eax, al
push eax
push 3
push esi
call fcn.004b1320
add esp, 8
movzx eax, al
push eax
push edi
call fcn.00440ac0
mov al, byte [esp + 0x3c]
shr al, 6
and al, 1
movzx eax, al
push eax
push 0xa
push edi
call fcn.00440ac0
mov al, byte [esp + 0x48]
sar al, 7
cbw
add ax, bp
movzx eax, ax
push eax
push 5
push edi
call fcn.004408a0
add esp, 0x24
mov al, byte [ebx + 3]
mov byte [esp + 0x30], al
cmp al, byte [esi + 0xd1]
je 0x4afceb
and al, 1
movzx eax, al
push eax
push 4
push edi
call fcn.00440ac0
mov al, byte [esp + 0x3c]
shr al, 1
and al, 1
movzx eax, al
push eax
push 6
push edi
call fcn.00440ac0
mov al, byte [esp + 0x48]
shr al, 2
and al, 1
movzx eax, al
push eax
push 8
push edi
call fcn.00440ac0
mov al, byte [esp + 0x54]
shr al, 3
and al, 1
movzx eax, al
push eax
push 7
push edi
call fcn.00440ac0
mov al, byte [esp + 0x60]
shr al, 4
and al, 1
movzx eax, al
push eax
push 5
push edi
call fcn.00440ac0
mov al, byte [esp + 0x6c]
shr al, 5
and al, 1
movzx eax, al
push eax
push 0xf
push edi
call fcn.00440ac0
add esp, 0x48
mov al, byte [ebx + 4]
mov byte [esp + 0x30], al
cmp al, byte [esi + 0xd2]
je 0x4afd76
and al, 1
movzx eax, al
push eax
push 0xc
push edi
call fcn.00440ac0
mov al, byte [esp + 0x3c]
shr al, 1
and al, 1
movzx eax, al
push eax
push 0xb
push edi
call fcn.00440ac0
mov al, byte [esp + 0x48]
shr al, 2
and al, 1
movzx eax, al
push eax
push 0xe
push edi
call fcn.00440ac0
mov al, byte [esp + 0x54]
shr al, 3
and al, 1
movzx eax, al
push eax
push 0xd
push edi
call fcn.00440ac0
mov al, byte [esp + 0x60]
shr al, 6
and al, 1
movzx eax, al
push eax
push 9
push edi
call fcn.00440ac0
mov al, byte [esp + 0x6c]
sar al, 7
cbw
add ax, bp
movzx eax, ax
push eax
push 4
push edi
call fcn.004408a0
add esp, 0x48
mov al, byte [ebx + 6]
and al, 0xf
movzx ecx, al
movzx eax, byte [ebx + 5]
shl cx, 8
or cx, ax
movzx eax, cx
push eax
push 0
push 0
push esi
call fcn.004aec90
movzx eax, ax
push eax
push 0
push edi
call fcn.004408a0
mov al, byte [ebx + 6]
movzx ecx, byte [ebx + 7]
shr al, 4
movzx eax, al
shl cx, 4
or cx, ax
movzx eax, cx
push eax
push 1
push 0
push esi
call fcn.004aec90
movzx eax, ax
not eax
push eax
push 1
push edi
call fcn.004408a0
mov al, byte [ebx + 9]
and al, 0xf
movzx ecx, al
movzx eax, byte [ebx + 8]
shl cx, 8
or cx, ax
movzx eax, cx
push eax
push 0
push 1
push esi
call fcn.004aec90
add esp, 0x48
movzx eax, ax
push eax
push 2
push edi
call fcn.004408a0
mov al, byte [ebx + 9]
movzx ecx, byte [ebx + 0xa]
shr al, 4
movzx eax, al
shl cx, 4
or cx, ax
movzx eax, cx
push eax
push 1
push 1
push esi
call fcn.004aec90
movzx eax, ax
not eax
push eax
push 3
push edi
call fcn.004408a0
add esp, 0x28
mov al, byte [ebx + 1]
test al, 1
je 0x4afe44
mov eax, 4
jmp 0x4afe77
movzx ecx, al
test cl, 0xe0
jne 0x4afe50
xor eax, eax
jmp 0x4afe77
mov eax, ecx
and eax, 0xe0
cmp eax, 0x20
ja 0x4afe63
mov eax, 1
jmp 0x4afe77
and ecx, 0xe0
mov eax, 0x60
cmp eax, ecx
sbb eax, eax
neg eax
add eax, 2
push eax
push edi
call fcn.00440a50
add esp, 8
cmp dword [esi + 0x90], 0
je 0x4b01a5
cmp word [ebx + 0x10], 0
jne 0x4aff1f
cmp word [ebx + 0xe], 0
jne 0x4aff1f
cmp word [ebx + 0xc], 0
jne 0x4aff1f
cmp dword [esi + 0x94], 0
je 0x4b01a5
call fcn.0045fdd0
mov ecx, dword [esi + 0x9c]
sub ecx, eax
mov dword [esp + 0x2c], eax
add ecx, 0xbb8
test ecx, ecx
jg 0x4b01a5
mov ebp, dword [esi]
cmp dword [ebp + 0x74], 0
je 0x4afee6
push dword [ebp + 0x5c]
call fcn.0044bfe0
add esp, 4
push 0
push 1
lea eax, [esp + 0x38]
mov byte [esp + 0x38], 1
push eax
push 0x40
push esi
call fcn.004b1b60
add esp, 0x14
cmp dword [ebp + 0x74], 0
je 0x4aff10
push dword [ebp + 0x5c]
call fcn.0044bfa0
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x9c], eax
jmp 0x4b01a5
mov eax, dword [esi + 0xa4]
lea ebp, [ebx + 0xc]
add eax, 3
mov dword [esi + 0x94], 1
mov dword [esi + 0xa4], eax
cmp eax, 0x3e8
jb 0x4aff86
call fcn.0045fdd0
mov ecx, eax
mov dword [esp + 0x30], eax
sub ecx, dword [esi + 0xa0]
je 0x4aff6d
imul eax, ecx, 0x3e8
xor edx, edx
div dword [esi + 0xa4]
mov dword [esi + 0xa8], eax
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 0xc]
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], eax
mov dword [esp + 0x20], ecx
jmp 0x4aff8a
mov dword [esp + 0x20], ebp
mov eax, dword [esi + 0xa8]
mov ecx, eax
add ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xb4]
adc edx, 0
mov dword [esp + 0x2c], ecx
add dword [esp + 0x2c], eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
adc dword [esp + 0x30], 0
add edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov dword [esi + 0xb0], eax
adc edi, 0
mov eax, dword [esi]
mov dword [esi + 0xb4], edi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
cmp dword [eax + 0x78], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
je 0x4afff6
cmp dword [esi + 0x24], 2
je 0x4afffa
jmp 0x4b0081
mov dword [esp + 0x20], ebp
lea eax, [ebx + 0x2a]
push eax
push edx
push ecx
push 2
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x24]
push eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push 1
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x1e]
push eax
push dword [esp + 0x64]
push dword [esp + 0x64]
push 2
push esi
push edi
call fcn.004b14e0
add esp, 0x48
lea eax, [ebx + 0x18]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push 1
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x12]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push 2
push esi
push edi
call fcn.004b14e0
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push 1
push esi
push edi
call fcn.004b14e0
mov ebp, dword [esp + 0x68]
add esp, 0x48
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
cmp dword [eax + 0x78], 0
je 0x4b010e
cmp dword [esi + 0x24], 1
jne 0x4b010e
lea eax, [ebx + 0x2a]
push eax
push edx
push ecx
push 4
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x24]
push eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push 3
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x1e]
push eax
push dword [esp + 0x64]
push dword [esp + 0x64]
push 4
push esi
push edi
call fcn.004b14e0
add esp, 0x48
lea eax, [ebx + 0x18]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push 3
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x12]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push 4
push esi
push edi
call fcn.004b14e0
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push 3
push esi
push edi
call fcn.004b14e0
add esp, 0x48
mov eax, dword [esi]
cmp dword [eax + 0x78], 0
je 0x4b01a5
cmp dword [esi + 0x24], 2
jne 0x4b01a5
lea eax, [ebx + 0x2a]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push 6
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x24]
push eax
push dword [esp + 0x34]
push dword [esp + 0x3c]
push 5
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x1e]
push eax
push dword [esp + 0x64]
push dword [esp + 0x64]
push 6
push esi
push edi
call fcn.004b14e0
add esp, 0x48
lea eax, [ebx + 0x18]
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push 5
push esi
push edi
call fcn.004b14e0
lea eax, [ebx + 0x12]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push 6
push esi
push edi
call fcn.004b14e0
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push 5
push esi
push edi
call fcn.004b14e0
add esp, 0x48
movups xmm0, xmmword [ebx]
pop edi
movups xmmword [esi + 0xce], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [esi + 0xde], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [esi + 0xee], xmm0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret