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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x80]
shl ebx, 4
add ebx, 0x1133f80
movzx eax, byte [ebx + 7]
test al, 8
jne 0xaaa5a6
test al, 2
jne 0xaaa5d4
movzx esi, byte [ebx + 4]
xor edx, edx
xor eax, eax
test esi, esi
je 0xaaa5a6
movzx ecx, byte [ebx + eax*2 + 8]
and ecx, 3
add ecx, 1
cmp edx, ecx
cmovl edx, ecx
add eax, 1
cmp eax, esi
jl 0xaaa39b
sub edx, 1
mov eax, 0xffffffff
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x20], ebx
mov ebx, eax
neg edx
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x80], 0x12a
mov esi, 0xffffffea
ja 0xaaa52e
mov ecx, dword [esp + 0x20]
movzx ebp, byte [ecx + 7]
test ebp, 8
jne 0xaaa52e
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
movzx eax, byte [ecx + 8]
mov edx, eax
shr al, 2
and edx, 3
and eax, 7
add eax, 1
mov dword [esp + edx*4 + 0x30], eax
movzx eax, byte [ecx + 0xa]
mov edx, eax
and eax, 3
shr dl, 2
and edx, 7
cmp edx, dword [esp + eax*4 + 0x30]
jl 0xaaa475
add edx, 1
mov dword [esp + eax*4 + 0x30], edx
mov dword [esp + eax*4 + 0x40], 1
mov edx, dword [esp + 0x20]
movzx eax, byte [edx + 0xc]
mov edx, eax
and eax, 3
shr dl, 2
and edx, 7
cmp edx, dword [esp + eax*4 + 0x30]
jl 0xaaa49d
add edx, 1
mov dword [esp + eax*4 + 0x30], edx
mov dword [esp + eax*4 + 0x40], 2
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + 0xe]
mov edx, eax
and eax, 3
shr dl, 2
and edx, 7
cmp edx, dword [esp + eax*4 + 0x30]
jl 0xaaa4c5
add edx, 1
mov dword [esp + eax*4 + 0x30], edx
mov dword [esp + eax*4 + 0x40], 3
mov edi, dword [esp + 0x84]
mov esi, 0xffffffea
mov eax, dword [esp + ebx*4 + 0x34]
mov edx, dword [esp + ebx*4 + 0x44]
test edi, edi
mov dword [esp + 0x18], eax
js 0xaaa52e
sub edx, 1
xor ecx, ecx
cmp edx, 1
mov eax, 1
jbe 0xaaa5c5
mov edx, dword [esp + 0x84]
lea edi, [eax + edx - 1]
sar edi, cl
test edi, edi
je 0xaaa51c
mov eax, 0x7fffffff
mov esi, 0xffffffea
mov edx, eax
sar edx, 0x1f
idiv edi
cmp dword [esp + 0x18], eax
jg 0xaaa52e
mov esi, dword [esp + 0x18]
imul esi, edi
and ebp, 4
je 0xaaa52e
add esi, 7
sar esi, 3
cmp ebx, 1
mov edi, dword [esp + 0x88]
jbe 0xaaa5b0
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [edx + ebx*4 + 4]
mov ebp, dword [ecx + ebx*4 + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
test ebp, ebp
mov eax, dword [edx + ebx*4 + 4]
mov edx, dword [ecx + ebx*4 + 4]
je 0xaaa599
test edx, edx
je 0xaaa599
test edi, edi
jle 0xaaa599
mov dword [esp + 0x24], ebx
mov ebx, edx
mov dword [esp + 0x1c], esi
mov esi, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
add ebx, esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
add ebp, dword [esp + 0x18]
sub edi, 1
jne 0xaaa576
mov ebx, dword [esp + 0x24]
add ebx, 1
cmp ebx, dword [esp + 0x28]
jne 0xaaa3d1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
movzx ecx, byte [eax + 6]
sar edi, cl
neg edi
jmp 0xaaa53a
mov edx, dword [esp + 0x20]
movzx ecx, byte [edx + 5]
shl eax, cl
jmp 0xaaa4f4
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
mov ebx, dword [edx]
mov ebp, dword [eax]
mov eax, dword [esp + 0x70]
mov edi, dword [ecx]
test ebx, ebx
mov esi, dword [eax]
je 0xaaa632
test esi, esi
je 0xaaa632
mov eax, dword [esp + 0x88]
test eax, eax
jle 0xaaa632
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x88]
lea esi, [esi]
mov edx, dword [esp + 0x84]
mov dword [esp + 4], ebx
add ebx, ebp
mov dword [esp], esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
add esi, dword [esp + 0x18]
sub edi, 1
jne 0xaaa610
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov edi, dword [ecx + 4]
mov esi, dword [eax + 4]
mov eax, 0x400
test edi, 1
jne 0xaaa681
test edi, 2
jne 0xaaa693
mov ecx, eax
xor edx, edx
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
je 0xaaa66d
movzx edx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0xaaa5a6
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
jmp 0xaaa5a6
movzx eax, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov eax, 0x3ff
jmp 0xaaa64d
movzx edx, word [esi]
sub eax, 2
add esi, 2
mov word [edi], dx
add edi, 2
jmp 0xaaa655