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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x800151c0]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov edi, edx
test ecx, ecx
je 0x9aa73c
mov eax, dword [ecx]
mov dword [0x800151ec], eax
mov eax, dword [ecx + 4]
mov dword [0x800151f4], eax
xor ebx, ebx
mov byte [esp + 0x10], 1
push 0xa8
lea eax, [esp + 0x1c]
mov byte [esp + 0x10], 8
push ebx
push eax
mov byte [esp + 0x20], bl
call fcn.009acfa6
add esp, 0xc
test edi, edi
je 0x9aa823
mov eax, dword [0x80016050]
mov dword [0x80015ae4], ebx
mov eax, dword [eax + 0x14c]
test eax, eax
je 0x9aa830
or dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x18]
push ebx
push ecx
push edi
mov dword [esp + 0xa4], 0xffff8000
mov dword [esp + 0xb0], 1
call eax
test eax, eax
js 0x9aa823
movzx eax, word [esp + 0x9a]
cmp eax, 0x13
jb 0x9aa7c2
mov edx, 0xc0000001
jmp 0x9aa95e
mov eax, dword [eax*4 - 0x7ffef000]
mov dword [0x80015ae4], eax
cmp eax, 0x80015068
jne 0x9aa7df
mov dword [0x80015ae4], 0x8001507c
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x80016050]
push edi
call dword [eax + 0xb8]
mov edx, eax
cmp byte [esp + 0x2d], bl
je 0x9aa7b8
mov eax, dword [esp + 0x30]
cmp byte [esp + 0x2c], 3
mov dword [0x800151f0], eax
mov al, byte [esp + 0x2f]
sete byte [esp + 0x14]
mov byte [esp + 0x10], al
mov al, byte [esp + 0x2e]
mov byte [esp + 0xc], al
test edx, edx
js 0x9aa95e
mov eax, dword [0x80015ae4]
test eax, eax
jne 0x9aa90c
test edi, edi
je 0x9aa86d
mov eax, dword [0x80016050]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x9aa86d
push 0x32474244
push edi
call eax
mov dword [0x80015204], eax
test eax, eax
jne 0x9aa7b8
mov eax, dword [0x80016050]
push 0x50474244
push edi
call dword [eax + 0x3c]
mov esi, eax
mov dword [0x80015204], esi
jmp 0x9aa873
mov esi, dword [0x80015204]
test esi, esi
je 0x9aa8dc
cmp byte [esi + 8], 1
ja 0x9aa7b8
cmp dword [esi], 0x50474244
jne 0x9aa7b8
movzx eax, byte [esi + 0x28]
sub eax, ebx
je 0x9aa8a3
sub eax, 1
jne 0x9aa7b8
mov eax, dword [esi + 0x2c]
jmp 0x9aa8b4
mov eax, dword [0x80016050]
push ebx
push 1
push dword [esi + 0x30]
push dword [esi + 0x2c]
call dword [eax + 0x48]
test eax, eax
je 0x9aa7b8
mov dword [0x800151f0], eax
cmp byte [esi + 0x28], 3
mov al, byte [esi + 0x2b]
mov byte [esp + 0x10], al
mov al, byte [esi + 0x29]
mov byte [esp + 0xc], al
jne 0x9aa8ee
mov byte [esp + 0x14], 1
jmp 0x9aa8ee
test edi, edi
je 0x9aa8ee
push ecx
mov ecx, dword [edi + 0x64]
mov edx, 0x800151f0
call fcn.009aa672
mov eax, 0x8001507c
mov dword [0x80015ae4], eax
test esi, esi
je 0x9aa90c
cmp byte [esi + 0x24], 2
jne 0x9aa90c
mov eax, 0x800150a4
mov dword [0x80015ae4], eax
cmp dword [0x800151f0], ebx
je 0x9aa7b8
cmp dword [0x800151f4], ebx
jne 0x9aa92a
mov dword [0x800151f4], 0x1c200
mov ecx, ebx
test edi, edi
je 0x9aa933
mov ecx, dword [edi + 0x78]
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push 0x800151f0
push ecx
call dword [eax]
test al, al
je 0x9aa7b8
mov eax, dword [0x80016000]
mov edx, ebx
mov ecx, dword [0x800151f0]
mov dword [eax], ecx
push 0x2a
pop ecx
lea esi, [esp + 0x18]
mov dword [0x80015d10], edx
mov edi, 0x80015b20
mov eax, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc4]
pop edi
shr eax, 0x1f
xor al, 1
pop esi
pop ebx
mov byte [0x80015d0c], al
xor ecx, esp
mov eax, edx
call fcn.009acf7c
mov esp, ebp
pop ebp
ret