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

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 8]
push ebx
mov ebx, dword [eax + 0xc]
push ebp
mov ebp, dword [eax]
push esi
mov esi, ecx
test dword [esi + 0x84], 0x2000
mov ecx, dword [eax + 4]
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
je 0x4aa750
add ecx, dword [0x5b2d7c]
mov dword [esp + 0x14], ecx
jmp 0x4aa75a
sub ebx, dword [0x5b2d7c]
mov dword [esp + 0x1c], ebx
mov eax, ebx
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
sar edi, 1
mov dword [esp + 0x28], eax
add edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x19
call fcn.004501f0
test eax, eax
je 0x4aa954
mov ecx, dword [0x5b2f68]
mov edx, dword [ecx + 0x20]
push 0x54de00
push edx
call dword [0x581524]
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + 4]
push 0
mov ebx, eax
lea eax, [esp + 0x24]
push eax
push 1
push 1
push ecx
push ebx
call dword [0x581520]
mov eax, dword [ebp + 4]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x10
xor edx, edx
cmp dword [esp + 0x4c], edx
push 0x10
push edi
setne dl
push 4
push eax
mov eax, dword [0x5b3d20]
push edx
push eax
call fcn.004e1c5d
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00402630
cmp dword [esp + 0x40], 0
je 0x4aa943
mov eax, dword [0x57d29c]
mov edi, dword [esi + 0xb8]
mov dword [esp + 0x40], eax
cdq
idiv edi
mov ecx, dword [esi + 0xac]
imul ecx, dword [esi + 0xa0]
mov dword [esp + 0x3c], ecx
mov edi, edx
xor edx, edx
test edi, edi
setne dl
xor edi, edi
sub edx, ecx
add eax, edx
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4aa8cf
jmp 0x4aa848
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
cmp edi, dword [esi + 0xa0]
jge 0x4aa8cf
dec eax
cmp eax, edi
jne 0x4aa882
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x4aa86a
lea ecx, [esp + 0x10]
push ecx
dec eax
push eax
jmp 0x4aa894
lea edx, [esp + 0x10]
push edx
push 0
mov ecx, esi
call fcn.004a9890
mov dword [esp + 0x18], 0x19
jmp 0x4aa89b
lea ecx, [edi + ecx + 1]
imul ecx, dword [esi + 0xb8]
lea eax, [esp + 0x10]
push eax
dec ecx
push ecx
mov ecx, esi
call fcn.004a9890
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 4]
push 0
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push edx
push 1
push 3
push eax
push ebx
mov dword [esp + 0x30], ecx
call dword [0x581520]
inc edi
cmp edi, dword [esp + 0x34]
jl 0x4aa840
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
mov dword [esp + 0x34], eax
jg 0x4aa8e7
mov dword [esp + 0x34], ecx
cmp edi, dword [esp + 0x34]
jge 0x4aa943
lea ecx, [ecx]
mov edx, dword [esi + 0xac]
imul edx, dword [esi + 0xa0]
add edx, edi
imul edx, dword [esi + 0xb8]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004a9890
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 4]
push 0
lea edx, [esp + 0x14]
push edx
push 1
push 3
push eax
push ebx
mov dword [esp + 0x28], 0x19
mov dword [esp + 0x30], ecx
call dword [0x581520]
inc edi
cmp edi, dword [esp + 0x34]
jl 0x4aa8f0
push ebx
call dword [str.._AVCUIntArray__]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
mov ecx, dword [0x5b2d94]
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call dword [0x53d708]
mov eax, dword [esi + 4]
mov edx, dword [0x5b3d20]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x10
xor ecx, ecx
cmp dword [esp + 0x4c], ecx
push 0x10
push edi
setne cl
push 4
push eax
push ecx
push edx
call fcn.004e1c5d
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00402630
mov ecx, dword [0x5b2db4]
mov edx, dword [esi + 4]
mov edi, dword [0x53d234]
push ecx
push edx
call edi
mov ecx, dword [esi + 4]
mov ebp, dword [0x53d210]
push 0
mov ebx, eax
mov eax, dword [esp + 0x18]
push eax
push 0x18
push ecx
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push edx
push 0x18
push eax
call dword [0x53d214]
mov ecx, dword [0x5b2da4]
mov edx, dword [esi + 4]
push ecx
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push 0
push eax
push 0x19
push ecx
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push edx
push 0x19
push eax
call dword [0x53d214]
mov ecx, dword [esi + 4]
push ebx
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10