Function at 0x4585b0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a72f5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x120c
call fcn.00497f30
mov eax, dword [0x617960]
xor eax, esp
mov dword [esp + 0x1208], eax
push ebx
push esi
push edi
mov eax, dword [0x617960]
xor eax, esp
push eax
lea eax, [esp + 0x1220]
mov dword fs:[0], eax
mov edi, ecx
push 0xfff
lea eax, [esp + 0x219]
mov dword [esp + 0x14], 0
push 0
push eax
mov byte [esp + 0x220], 0
call fcn.00495000
mov eax, dword [edi + 0xc8]
add esp, 0xc
mov dword [esp + 0x110], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0xa
push eax
push 0
push 0
lea eax, [esp + 0x118]
mov dword [esp + 0x118], 1
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x45869e
push 0
push 0x1000
lea eax, [esp + 0x21c]
push eax
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_recv]
push 0x1000
lea eax, [esp + 0x218]
push 0
push eax
call fcn.00495000
add esp, 0xc
push 0
push 0x5fed9c
lea ecx, [esp + 0xf4]
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
call fcn.00437730
mov dword [esp + 0x1228], 0
cmp dword [edi + 0x64], 0
jne 0x458710
push 9
push str._HTTP_1.1
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00437730
lea esi, [esp + 0x2c]
mov ebx, 1
jmp 0x458752
lea eax, [edi + 0x54]
mov edx, 0x6003c8
push eax
lea ecx, [esp + 0x18]
call fcn.0043d4d0
mov dword [esp + 0x122c], 2
lea ecx, [esp + 0xa8]
push str._HTTP_1.1
mov edx, eax
mov dword [esp + 0x18], 2
call fcn.0043ee70
add esp, 8
mov esi, eax
mov ebx, 6
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebx
jae 0x458788
mov eax, dword [esi + 0x10]
inc eax
je 0x458794
push eax
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00493570
add esp, 0xc
jmp 0x458794
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x58], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esp + 0x1228], 4
lea ecx, [esp + 0xbc]
push 3
push 0x6003cc
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
call fcn.00437730
push 0x5fee50
lea edx, [esp + 0xc0]
mov byte [esp + 0x122c], 5
lea ecx, [esp + 0x90]
call fcn.0043ee70
lea ecx, [edi + 0x3c]
mov byte [esp + 0x122c], 6
push ecx
mov edx, eax
lea ecx, [esp + 0x7c]
call fcn.0043d5c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1230], 7
push ecx
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.00448df0
push 0x6003b8
mov edx, eax
mov byte [esp + 0x1238], 8
lea ecx, [esp + 0xe4]
call fcn.0043ee70
mov esi, eax
add esp, 0x10
lea eax, [esp + 0xec]
cmp eax, esi
je 0x4588f8
cmp dword [esp + 0x100], 0x10
jb 0x458886
push dword [esp + 0xec]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
cmp dword [esi + 0x14], 0x10
jae 0x4588c4
mov eax, dword [esi + 0x10]
inc eax
je 0x4588d3
push eax
lea eax, [esp + 0xf0]
push esi
push eax
call fcn.00493570
add esp, 0xc
jmp 0x4588d3
mov eax, dword [esi]
mov dword [esp + 0xec], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0xfc], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x100], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0xe8], 0x10
jb 0x458911
push dword [esp + 0xd4]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], 0
mov byte [esp + 0xd4], 0
jb 0x458942
push dword [esp + 0x5c]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x45896d
push dword [esp + 0x74]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
jb 0x4589a1
push dword [esp + 0x8c]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0xd0], 0x10
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
jb 0x4589d8
push dword [esp + 0xbc]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], 0
mov byte [esp + 0xbc], 0
jb 0x458a09
push dword [esp + 0x44]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
test bl, 4
je 0x458a61
and ebx, 0xfffffffb
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x10], ebx
jb 0x458a43
push dword [esp + 0xa4]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
test bl, 2
je 0x458a95
and ebx, 0xfffffffd
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], ebx
jb 0x458a80
push dword [esp + 0x14]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0x1228], 0
test bl, 1
je 0x458abf
and ebx, 0xfffffffe
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x10], ebx
jb 0x458abf
push dword [esp + 0x2c]
call fcn.0047e2e9
add esp, 4
push 0xa
push str.Accept:_
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00437730
push 0x6003d0
lea edx, [esp + 0x30]
mov byte [esp + 0x122c], 9
lea ecx, [esp + 0x18]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1234], 0xa
call fcn.0043ecc0
cmp dword [esp + 0x28], 0x10
jb 0x458b2d
push dword [esp + 0x14]
call fcn.0047e2e9
add esp, 4
mov byte [esp + 0x1228], 0
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x458b5d
push dword [esp + 0x2c]
call fcn.0047e2e9
add esp, 4
push 0x16
push str.Accept_Language:_zh_cn
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00437730
push 0x6003d0
lea edx, [esp + 0x30]
mov byte [esp + 0x122c], 0xb
lea ecx, [esp + 0x18]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1234], 0xc
call fcn.0043ecc0
cmp dword [esp + 0x28], 0x10
jb 0x458bcb
push dword [esp + 0x14]
call fcn.0047e2e9
add esp, 4
mov byte [esp + 0x1228], 0
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x458bfb
push dword [esp + 0x2c]
call fcn.0047e2e9
add esp, 4
push 0x6f
push str.User_Agent:_sess_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00437730
push 0x6003d0
lea edx, [esp + 0x30]
mov byte [esp + 0x122c], 0xd
lea ecx, [esp + 0x18]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1234], 0xe
call fcn.0043ecc0
cmp dword [esp + 0x28], 0x10
jb 0x458c69
push dword [esp + 0x14]
call fcn.0047e2e9
add esp, 4
mov byte [esp + 0x1228], 0
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x458c99
push dword [esp + 0x2c]
call fcn.0047e2e9
add esp, 4
push 0x11
push str.Connection:_Close
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.00437730
push 0x6003d0
lea edx, [esp + 0x30]
mov byte [esp + 0x122c], 0xf
lea ecx, [esp + 0x18]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1234], 0x10
call fcn.0043ecc0
cmp dword [esp + 0x28], 0x10
jb 0x458d07
push dword [esp + 0x14]
call fcn.0047e2e9
add esp, 4
mov byte [esp + 0x1228], 0
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x458d37
push dword [esp + 0x2c]
call fcn.0047e2e9
add esp, 4
movzx eax, word [edi + 0x6c]
mov ecx, 0x50
cmp cx, ax
jne 0x458d67
lea eax, [edi + 0xc]
mov edx, str.Host:
push eax
lea ecx, [esp + 0xd8]
call fcn.0043d4d0
add esp, 4
mov esi, eax
or ebx, 8
jmp 0x458dea
push ecx
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.004431c0
mov esi, eax
lea ecx, [edi + 0xc]
mov dword [esp + 0x122c], 0x12
push ecx
or ebx, 0x10
lea ecx, [esp + 0x7c]
mov edx, str.Host:
mov dword [esp + 0x18], ebx
call fcn.0043d4d0
mov dword [esp + 0x1230], 0x13
lea ecx, [esp + 0x94]
or ebx, 0x20
mov edx, eax
push str.:._:
mov dword [esp + 0x1c], ebx
call fcn.0043ee70
mov dword [esp + 0x1234], 0x14
lea ecx, [esp + 0xb0]
or ebx, 0x40
mov edx, eax
push esi
mov dword [esp + 0x20], ebx
call fcn.00448df0
add esp, 0x10
mov esi, eax
or ebx, 0x80
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebx
jae 0x458e20
mov eax, dword [esi + 0x10]
inc eax
je 0x458e2c
push eax
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00493570
add esp, 0xc
jmp 0x458e2c
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x58], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
push 0x600494
lea edx, [esp + 0x48]
mov dword [esp + 0x122c], 0x16
lea ecx, [esp + 0x18]
call fcn.0043ee70
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1234], 0x17
call fcn.0043ecc0
cmp dword [esp + 0x28], 0x10
jb 0x458e97
push dword [esp + 0x14]
call fcn.0047e2e9
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x458ebf
push dword [esp + 0x44]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
test bl, bl
jns 0x458f15
and ebx, 0xffffff7f
cmp dword [esp + 0xb8], 0x10
jb 0x458ef7
push dword [esp + 0xa4]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
test bl, 0x40
je 0x458f54
and ebx, 0xffffffbf
cmp dword [esp + 0xa0], 0x10
jb 0x458f36
push dword [esp + 0x8c]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
test bl, 0x20
je 0x458f8d
and ebx, 0xffffffdf
cmp dword [esp + 0x88], 0x10
jb 0x458f72
push dword [esp + 0x74]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
test bl, 0x10
je 0x458fbd
and ebx, 0xffffffef
cmp dword [esp + 0x70], 0x10
jb 0x458fa8
push dword [esp + 0x5c]
call fcn.0047e2e9
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
test bl, 8
je 0x458fdb
cmp dword [esp + 0xe8], 0x10
jb 0x458fdb
push dword [esp + 0xd4]
call fcn.0047e2e9
add esp, 4
lea ecx, [esp + 0x214]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458fe5
push 0
sub ecx, edx
lea eax, [esp + 0x218]
push ecx
push eax
push dword [edi + 0xc8]
call dword [sym.imp.WS2_32.dll_send]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x100], 0x10
jb 0x459029
push dword [esp + 0xec]
call fcn.0047e2e9
add esp, 4
mov ecx, dword [esp + 0x1220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1208]
xor ecx, esp
call fcn.0049355b
mov esp, ebp
pop ebp
ret