Function at 0x435e80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44cafb
push eax
mov eax, 0x19050
mov dword fs:[0], esp
call fcn.0043abc0
push ebx
push ebp
push esi
push edi
mov edi, str.http:__
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x19070]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x4556f0
add esi, ecx
mov dword [esp + 0x30], 0x2710
push esi
call fcn.0043ab40
mov edx, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
add esp, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
jne 0x435f2d
push esi
push 0x45ad08
lea eax, [esp + 0x68]
push str.GET___s_HTTP_1.1_r_nAccept:_application_vnd.ms_powerpoint__application_msword____r_nAccept_Language:_zh_cn_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__r_nHost:__s_r_nConnection:_Keep_Alive_r_n_r_n
push eax
call fcn.0043a5e5
lea ebx, [esp + eax + 0x70]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x435f60
mov ecx, edx
lea edi, [esp + 0x40]
sub ecx, esi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
push edx
lea edx, [esp + 0x68]
push str.GET___s_HTTP_1.1_r_nAccept:_application_vnd.ms_powerpoint__application_msword____r_nAccept_Language:_zh_cn_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__r_nHost:__s_r_nConnection:_Keep_Alive_r_n_r_n
push edx
call fcn.0043a5e5
add esp, 0x10
lea ebx, [esp + eax + 0x60]
mov al, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00401ff0
mov edi, str.http:__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402180
test al, al
je 0x435fb9
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.http:__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x19068], 0
mov esi, ecx
mov ecx, dword [0x44e274]
sub ecx, edx
cmp ecx, esi
ja 0x435fe9
call fcn.00446f90
test esi, esi
jbe 0x43602d
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00402180
test al, al
je 0x43602d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x40]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00402160
lea ecx, [esp + 0x12]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004342c0
add esp, 0xc
test eax, eax
je 0x436073
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4362cb
mov al, byte [ecx - 1]
test al, al
je 0x4362c1
cmp al, 0xff
je 0x4362c1
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x4362db
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0x2c]
push 4
push ecx
mov ebp, eax
push 0x1006
push 0xffff
push ebp
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esp + 0x28]
mov ax, word [esp + 0x12]
lea ecx, [esp + 0x30]
push 0x10
push ecx
push ebp
mov word [esp + 0x3c], 2
mov dword [esp + 0x40], edx
mov word [esp + 0x3e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4360d0
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x436048
lea edx, [esp + 0x60]
push 0
sub ebx, edx
lea eax, [esp + 0x64]
push ebx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4360f5
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x436048
push 0
lea ecx, [esp + 0x64]
push 0x19000
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x43611a
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x436048
lea edx, [esp + 0x60]
push str._r_n_r_n
push edx
call fcn.0043ab40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x43613e
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x436048
lea eax, [esp + 0x60]
push str.Content_Length:
mov byte [ebx], 0
push eax
add ebx, 4
call fcn.0043ab40
mov edx, eax
add esp, 8
test edx, edx
jne 0x436210
mov ecx, dword [esp + 0x19074]
push 0x4558fc
push ecx
call fcn.0043adb4
mov edi, eax
add esp, 8
test edi, edi
jne 0x436187
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x436048
sub esi, ebx
push edi
lea edx, [esp + esi + 0x64]
push edx
push 1
push ebx
call fcn.0043aeea
mov esi, dword [sym.imp.WS2_32.dll_recv]
add esp, 0x10
lea eax, [esp + 0x60]
push 0
push 0x19000
push eax
push ebp
call esi
test eax, eax
jle 0x4361d7
push edi
push eax
lea ecx, [esp + 0x68]
push 1
push ecx
call fcn.0043aeea
add esp, 0x10
lea edx, [esp + 0x60]
push 0
push 0x19000
push edx
push ebp
call esi
test eax, eax
jg 0x4361b3
push edi
call fcn.0043abef
add esp, 4
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4362d9
mov al, byte [ecx - 1]
test al, al
je 0x4362cf
cmp al, 0xff
je 0x4362cf
dec al
mov byte [ecx - 1], al
jmp 0x4362d9
mov edi, str.Content_Length:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.0043aa71
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x19078]
sub esi, ebx
push 0x4558fc
push eax
lea esi, [esp + esi + 0x6c]
call fcn.0043adb4
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x43626f
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4362cb
mov al, byte [ecx - 1]
test al, al
je 0x4362c1
cmp al, 0xff
je 0x4362c1
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x4362db
push edi
push esi
push 1
push ebx
call fcn.0043aeea
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp esi, eax
jge 0x4361d7
push 0
lea ecx, [esp + 0x64]
push 0x19000
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x43624c
push edi
push ebx
lea edx, [esp + 0x68]
push 1
push edx
call fcn.0043aeea
mov eax, dword [esp + 0x34]
add esi, ebx
add esp, 0x10
cmp esi, eax
jl 0x436288
jmp 0x4361d7
dec ecx
push ecx
call fcn.00439308
add esp, 4
xor al, al
jmp 0x4362db
dec ecx
push ecx
call fcn.00439308
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x19060]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1905c
ret