Function at 0x4aa520
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f5488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xdc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x68], 3
je 0x4aa615
mov eax, dword [esp + 0x70]
mov edx, dword [0x50a0e4]
mov esi, dword [0x4f9320]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa587
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa587
mov edx, dword [esp + 0x70]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x74]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa5b2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa5b2
mov edx, dword [esp + 0x74]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x78]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa5dd
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa5dd
mov edx, dword [esp + 0x78]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aac92
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aac92
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
jmp 0x4aac92
cmp dword [edi + 0xd0], ebx
je 0x4aac6e
lea ecx, [esp + 0x3c]
call fcn.004272c0
mov esi, dword [edi + 0xd0]
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.004272c0
push str.QvodPlayChannel
lea ecx, [esp + 0x44]
mov word [esp + 0x44], bx
call fcn.004067a0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
push str.selectSingleNode
lea ecx, [esi + 4]
mov byte [esp + 0x74], 6
call fcn.00407e00
lea edx, [esp + 0x40]
mov dword [esi + 8], eax
push edx
mov byte [esp + 0x6c], 5
call dword [0x4f936c]
cmp dword [esi + 8], ebx
jl 0x4aa699
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4aa699
push eax
lea ecx, [esp + 0x40]
call fcn.00407de0
mov ebp, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 4
call fcn.004282a0
cmp ebp, ebx
jne 0x4aa77c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 3
call fcn.004282a0
mov eax, dword [esp + 0x70]
mov edx, dword [0x50a0e4]
mov esi, dword [0x4f9320]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa6ee
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa6ee
mov edx, dword [esp + 0x70]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x74]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa719
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa719
mov edx, dword [esp + 0x74]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x78]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa744
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa744
mov edx, dword [esp + 0x78]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [0x50a0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aac92
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aac92
mov edx, dword [esp + 0x7c]
add edx, 0xfffffff4
push edx
call fcn.004dcaa6
add esp, 4
jmp 0x4aac92
lea ecx, [esp + 0x34]
call fcn.004272c0
lea ecx, [esp + 0x14]
xor esi, esi
call fcn.004272c0
push str.channel
lea ecx, [esp + 0x44]
mov word [esp + 0x44], bx
call fcn.004067a0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
push str.selectNodes
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 9
call fcn.00407e00
mov ebp, dword [0x4f936c]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x6c], 8
call ebp
cmp dword [esp + 0x38], ebx
jl 0x4aa7f3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4aa7f3
push eax
lea ecx, [esp + 0x38]
call fcn.00407de0
mov esi, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 7
call fcn.004282a0
cmp esi, ebx
je 0x4aa9fb
mov dword [esp + 0x1c], ebx
mov word [esp + 0x40], bx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x34]
push eax
push str.length
mov byte [esp + 0x70], 0xa
call fcn.00469320
cmp eax, ebx
mov dword [esp + 0x30], eax
jl 0x4aa842
cmp word [esp + 0x40], 3
jne 0x4aa842
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x40]
push edx
call ebp
mov eax, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, ebx
jle 0x4aa9fb
lea ecx, [esp + 0x44]
call fcn.004272c0
xor esi, esi
cmp ebp, ebx
jl 0x4aa9e0
lea ecx, [esp + 0x14]
call fcn.004272c0
mov word [esp + 0x50], 3
mov dword [esp + 0x58], ebp
lea eax, [esp + 0x14]
lea ecx, [esp + 0x50]
push eax
push ecx
push str.item
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], 0xd
call fcn.00407e00
lea edx, [esp + 0x50]
mov dword [esp + 0x30], eax
push edx
mov byte [esp + 0x6c], 0xc
call dword [0x4f936c]
cmp dword [esp + 0x30], ebx
jl 0x4aa8cc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4aa8cc
push eax
lea ecx, [esp + 0x48]
call fcn.00407de0
mov esi, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0xb
call fcn.004282a0
cmp esi, ebx
je 0x4aa9e0
lea eax, [esp + 0x10]
push str.adder
push eax
lea ecx, [esp + 0x48]
call fcn.004083f0
lea ecx, [esp + 0x20]
push str.type
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0xe
call fcn.004083f0
mov edx, dword [esp + 0x20]
push str.getdata
push edx
mov byte [esp + 0x70], 0xf
call fcn.004dd2dd
add esp, 8
test eax, eax
jne 0x4aa9b4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
add eax, 0xfffffff9
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00407130
push ebx
push 0x513788
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0x10
call fcn.004147e0
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004072a0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x68], 0x11
cmp dword [eax - 8], ebx
je 0x4aa994
cmp dword [eax - 0xc], ebx
jl 0x4aa986
lea ecx, [esp + 0x10]
call fcn.004020f0
jmp 0x4aa994
push 0x51d42c
lea ecx, [esp + 0x14]
call fcn.00406d00
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push eax
call fcn.004022b0
lea ecx, [esp + 0x24]
call fcn.004021d0
lea ecx, [esp + 0x18]
call fcn.004021d0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.004de8b5
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
je 0x4aac19
call fcn.004021d0
lea ecx, [esp + 0x10]
call fcn.004021d0
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 7
call fcn.004282a0
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x4aa857
lea ecx, [esp + 0x28]
call fcn.004673c0
mov ecx, dword [edi + 0xd0]
lea eax, [esp + 0x28]
push eax
push str.channel
mov byte [esp + 0x70], 0x12
call fcn.00469c90
test eax, eax
je 0x4aac44
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00409940
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x28]
push edx
push str.title
call fcn.00408090
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x28]
push eax
push str.username
call fcn.00408090
mov ecx, dword [esp + 0x7c]
push ecx
push str.password
lea ecx, [esp + 0x30]
call fcn.00408090
push 1
push str.needup
lea ecx, [esp + 0x30]
call fcn.00408260
lea edx, [esp + 0x40]
push edx
call dword [0x4f9308]
mov eax, dword [0x50a0e0]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x4a]
mov eax, dword [esp + 0x48]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x4a]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x4a]
push eax
mov eax, dword [esp + 0x4c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x2c]
push str._04d__02d__02d__02d:_02d:_02d
push ecx
mov byte [esp + 0x88], 0x13
call fcn.004073f0
mov edx, dword [esp + 0x34]
add esp, 0x20
lea ecx, [esp + 0x28]
push edx
push str.createtime
call fcn.00408090
lea eax, [esp + 0x10]
push 7
push eax
lea ecx, [esp + 0x7c]
call fcn.004072a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 0x14
call fcn.00408910
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x4f94ec]
push ebx
push 0x50cc7c
lea ecx, [esp + 0x18]
call fcn.004147e0
test eax, eax
jne 0x4aac32
push str.getxml
push str.type
lea ecx, [esp + 0x30]
call fcn.00408090
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x28]
push edx
push str.adder
call fcn.00408090
mov ecx, dword [edi + 0xd0]
push ebx
call fcn.00402b80
mov eax, dword [edi + 0xd4]
push ebx
push ebx
push 0x1004
mov eax, dword [eax]
push eax
call dword [0x4f94a0]
mov ecx, dword [edi + 0xe0]
mov dword [edi + 0xe4], eax
push ecx
mov dword [edi + 0xdc], 1
call dword [0x4f92a8]
push edi
push ebx
push 0x4a9830
call fcn.004ddc20
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004021d0
lea ecx, [esp + 0x14]
call fcn.004021d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 7
call fcn.004282a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 4
call fcn.004282a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 3
call fcn.004282a0
lea ecx, [esp + 0x70]
call fcn.004021d0
lea ecx, [esp + 0x74]
call fcn.004021d0
lea ecx, [esp + 0x78]
call fcn.004021d0
lea ecx, [esp + 0x7c]
call fcn.004021d0
mov eax, 1
jmp 0x4aac94
call fcn.004021d0
lea ecx, [esp + 0x10]
call fcn.004021d0
mov byte [esp + 0x68], 7
lea ecx, [esp + 0x44]
jmp 0x4aac4d
lea ecx, [esp + 0x10]
call fcn.004021d0
lea ecx, [esp + 0x14]
call fcn.004021d0
mov byte [esp + 0x68], 7
lea ecx, [esp + 0x2c]
call fcn.004282a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 4
call fcn.004282a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 3
call fcn.004282a0
lea ecx, [esp + 0x70]
call fcn.004021d0
lea ecx, [esp + 0x74]
call fcn.004021d0
lea ecx, [esp + 0x78]
call fcn.004021d0
lea ecx, [esp + 0x7c]
call fcn.004021d0
xor eax, eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10