Function at 0x418e76
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x10
call fcn.0047476f
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x18
call fcn.0047476f
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
push 0xc
call fcn.0047476f
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x5d00bf
push ebx
add ebx, 4
push ebx
push 8
call fcn.0047476f
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.0040545b
pop ebx
push 8
call fcn.0047476f
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0xffffffffffffffff
push 0x12
push 0x16017856
push 0x52010001
call fcn.0047479f
add esp, 0x10
test eax, eax
je 0x418f95
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x5d7cf0
push 2
mov ebx, 0x478bd0
call fcn.00474787
add esp, 0x1c
mov ebx, dword [0x723df0]
call fcn.00402610
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x419106
mov ebx, dword [0x723df0]
call fcn.00402629
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x418fd7
push 4
call fcn.0047477b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x418fea
push 1
call fcn.0047477b
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x4c
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4190e4
mov ebx, dword [0x723df0]
call fcn.00402629
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x419033
push 4
call fcn.0047477b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x419046
push 1
call fcn.0047477b
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x50]
call fcn.00402629
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x41906a
push 4
call fcn.0047477b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x41907d
push 1
call fcn.0047477b
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
push eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.004012f1
add esp, 8
cmp eax, 0
jne 0x4190dc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x4190e4
pop eax
pop ebx
pop ecx
jmp 0x419005
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x4190fe
jmp 0x419106
pop eax
pop ebx
pop ecx
jmp 0x418fa9
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x419747
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.00402649
push str.tag0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.v2id
mov ecx, 3
call fcn.0040106f
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x10
mov dword [ebp - 0x20], ebx
push 8
call fcn.0047476f
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, str.User_Agent:Mozilla_5.0__Linux__Android_4.4.4__2015813_Build_KTU84P__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_35.0.1916.138_Mobile_Mobile_Safari_537.36
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
push dword [ebp - 0x20]
push 1
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
mov eax, str.http:__1_api_red.xunlei.com_index.php_rusr_giveUpGift
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040290b
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x419237
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x419247
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x419257
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x419267
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x419277
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x419287
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x419297
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4192a7
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4192b7
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x47d920
call fcn.00474787
add esp, 0x10
call fcn.00474775
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x4192ed
mov eax, 0x5a6de3
push eax
push 1
mov ebx, 0x476a80
call fcn.00474787
add esp, 0x10
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x419313
push ebx
call fcn.00474775
add esp, 4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x419335
push ebx
call fcn.00474775
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x5a6deb
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41936e
push ebx
call fcn.00474775
add esp, 4
push 0x5a6ded
push dword [ebp - 0x24]
call fcn.004012f1
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41939c
push ebx
call fcn.00474775
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x4196d5
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x4196d0
mov ebx, dword [0x723df0]
call fcn.00402629
push ebx
push ecx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
dec eax
jns 0x4193e3
push 4
call fcn.0047477b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4193f6
push 1
call fcn.0047477b
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x50
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push 4
mov eax, 2
call fcn.00474769
add esp, 8
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
dec eax
jl 0x41954f
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
call fcn.00402629
mov dword [ebp - 0x34], ecx
sub ecx, dword [ebp - 0x28]
jle 0x41954f
cmp ecx, 1
jle 0x419450
mov ecx, 1
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
jle 0x41954f
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [edi], 1
add edi, 4
mov eax, ecx
sub eax, dword [ebp - 0x2c]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x41947e
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x30]
add edi, 8
mov eax, dword [ebp - 0x28]
shl eax, 2
add edi, eax
mov ecx, dword [ebp - 0x2c]
mov ebx, edi
push edi
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4194a7
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4194bb
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4194cf
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4194e3
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4194f7
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41950b
push ebx
call fcn.00474775
add esp, 4
pop ebx
call fcn.00474775
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x419492
pop edi
mov eax, dword [ebp - 0x2c]
shl eax, 2
mov esi, edi
add esi, eax
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
sub edi, dword [ebp - 0x30]
push edi
push dword [ebp - 0x30]
call fcn.00474799
add esp, 8
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
jmp 0x419551
xor eax, eax
mov ebx, dword [0x723df0]
call fcn.00402629
push ebx
push ecx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
dec eax
jns 0x41957c
push 4
call fcn.0047477b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x41958f
push 1
call fcn.0047477b
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x4c
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
dec dword [ebx]
call fcn.00406b3b
push 0x5e4e34
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x5e4e41
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x5e4e48
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0x1c], eax
push 1
push 1
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x5d0083
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x723de4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x419605
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x419615
push ebx
call fcn.00474775
add esp, 4
push 0x5e4e50
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x5e4e41
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x5d0080
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x5d03c6
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404e40
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x419663
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x419673
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x1c], ebx
push 0x5e4e34
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x5e4e41
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x5e4e48
mov ecx, 5
call fcn.0040106f
add esp, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4196ca
push ebx
call fcn.00474775
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x419742
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, 0x5d039a
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x419726
push ebx
call fcn.00474775
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41973c
push ebx
call fcn.00474775
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x41977d
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov eax, 0x5e4e5b
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x419777
push ebx
call fcn.00474775
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
push eax
push 8
call fcn.0047476f
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x4197b0
push eax
mov ebx, eax
call fcn.00401004
inc eax
push eax
call fcn.0047476f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
jmp 0x4197b9
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4197da
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4197ee
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x419802
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x419816
push ebx
call fcn.00474775
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41982a
push ebx
call fcn.00474775
add esp, 4
pop ebx
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00474775
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41985a
push ebx
call fcn.00474775
add esp, 4
pop ebx
call fcn.00474775
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10