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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 8
call fcn.004711ec
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.87_Safari_537.36
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
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
push 0
mov eax, str.https:__2024.ip138.com
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00405006
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x404c1f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x404c2f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x404c3f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x404c4f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x404c5f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x404c6f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404c7f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x404c8f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404c9f
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404caf
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x476600
call fcn.00471204
add esp, 0x10
call fcn.004711f2
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x404ce5
mov eax, 0x542d0d
push eax
push 1
mov ebx, 0x473650
call fcn.00471204
add esp, 0x10
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x404d0b
push ebx
call fcn.004711f2
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404d1f
push ebx
call fcn.004711f2
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409a28
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404d43
push ebx
call fcn.004711f2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.__title_
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0x565be1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00408403
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404d9e
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404dae
push ebx
call fcn.004711f2
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404dc4
push ebx
call fcn.004711f2
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
push 0x542baa
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.00401bc8
add esp, 8
cmp eax, 0
je 0x404e1a
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
push 0x542cb3
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.00401bc8
add esp, 8
cmp eax, 0
je 0x404e1a
xor eax, eax
jmp 0x404e1f
mov eax, 1
test eax, eax
je 0x404e3d
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
jmp 0x404f44
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, str.__p_
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, 0x565bf5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00408403
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404e94
push ebx
call fcn.004711f2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404ea4
push ebx
call fcn.004711f2
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x404eba
push ebx
call fcn.004711f2
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
push 0x542baa
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.00401bc8
add esp, 8
cmp eax, 0
je 0x404f10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x10], ebx
push 0x542cb3
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.00401bc8
add esp, 8
cmp eax, 0
je 0x404f10
xor eax, eax
jmp 0x404f15
mov eax, 1
test eax, eax
je 0x404f33
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 0
jmp 0x404f44
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 1
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404f54
push ebx
call fcn.004711f2
add esp, 4
mov esp, ebp
pop ebp
ret 8