Function at 0x4fc8f0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x6b5e08
call fcn.00651da4
mov eax, 0x21c8
call section..text
push ebx
push esi
push edi
mov ebx, ecx
lea edi, [ebp - 0x104]
push 8
xor eax, eax
mov dword [ebp], ebx
pop ecx
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0xfc], 1
lea eax, [ebx + 0x30]
mov dword [ebp - 0x100], esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0xf8], 6
mov dword [ebp + 0x58], esi
jb 0x4fc947
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x4fc951
mov ecx, dword [ebx]
jmp 0x4fc953
mov ecx, ebx
lea edx, [ebp + 0x58]
push edx
lea edx, [ebp - 0x104]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4fc98c
push str.getaddrinfo_failed
lea ecx, [ebp + 0x34]
call fcn.00420ea5
push 0x79424c
lea eax, [ebp + 0x34]
mov dword [ebp + 0x34], vtable.std::runtime_error.0
push eax
call fcn.0066a234
mov eax, dword [ebp + 0x58]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fc9ac
push str.Cannot_create_outgoing_socket
jmp 0x4fc96f
push 4
lea eax, [ebp + 0x24]
mov dword [ebp + 8], esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push eax
push 0x1006
push 0xffff
push edi
mov dword [ebp + 0x24], 0x3e8
call esi
push 4
lea eax, [ebp + 0x24]
push eax
push 0x1005
push 0xffff
push edi
call esi
push 4
lea eax, [ebp + 8]
push eax
push 0x1b
push 0x29
push edi
call esi
mov eax, dword [ebp + 0x58]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp + 0x58]
mov esi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, 0xffffffff
jne 0x4fca20
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_connect
jmp 0x4fc96f
push 0
push 0
push 0x7010
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
push 2
lea ecx, [ebp - 0x1d4]
call fcn.0043c74f
xor eax, eax
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x24], al
mov byte [ebp - 4], 1
cmp dword [ebx + 0x70], eax
je 0x4fca7a
mov esi, 0x6dc17c
push esi
call fcn.0040f6ae
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.0040f427
mov eax, dword [ebx + 0x70]
jmp 0x4fca92
mov esi, 0x6dc184
push esi
call fcn.0040f6ae
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.0040f427
xor eax, eax
mov esi, 0x6dc188
push esi
push eax
push 0x6dc18c
push str.Connection:_close_r_n
push 0x6f2d20
call fcn.00490ec8
push eax
push str._ver:
push str.User_Agent:_ut_core_BenchHttp
push esi
push ebx
push 0x6dc1d4
push str._HTTP_1.1_r_n
lea eax, [ebx + 0x18]
push eax
push 0x6db638
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.00442aa4
push eax
call fcn.004440b6
push eax
call fcn.00442aa4
push eax
call fcn.004440b6
push eax
call fcn.004440b6
push eax
call fcn.00442aa4
push eax
call fcn.004440b6
push eax
call fcn.004440b6
push eax
call fcn.004440b6
mov ecx, eax
call fcn.0043c99a
push eax
call fcn.004440b6
push eax
call fcn.004440b6
push eax
call fcn.004440b6
mov ecx, eax
call fcn.0043caa2
push eax
call fcn.004440b6
lea eax, [ebx + 0x48]
cmp dword [eax + 0x10], 0
je 0x4fcb5b
push esi
push eax
push 0x6dc1e8
lea eax, [ebp - 0x1d4]
push eax
call fcn.004440b6
push eax
call fcn.00442aa4
push eax
call fcn.004440b6
push esi
lea eax, [ebp - 0x1d4]
push eax
call fcn.004440b6
lea eax, [ebx + 0x60]
cmp dword [eax + 0x10], 0
je 0x4fcb7e
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.00442aa4
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.0043f431
mov esi, eax
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1d4]
call fcn.0043f431
cmp dword [eax + 0x14], 0x10
jb 0x4fcbaa
mov eax, dword [eax]
push 0
push dword [esi + 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0
push 1
lea ecx, [ebp + 0x40]
mov dword [ebx + 0x9c], eax
call fcn.0040facf
push 0
push 1
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 1
call fcn.0040facf
cmp dword [ebx + 0x9c], 0xffffffff
jne 0x4fcbf3
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_send
jmp 0x4fc96f
and dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
mov byte [ebp - 4], 3
mov byte [ebp + 0x63], 1
xor esi, esi
push 0x2000
lea eax, [ebp - 0x21d4]
push 0
push eax
call fcn.0066c620
add esp, 0xc
lea eax, [ebp - 0x21d4]
push 0
push 0x1fff
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4fcce9
add dword [ebx + 0xa0], eax
cmp byte [ebp + 0x63], 0
je 0x4fccd2
push eax
lea eax, [ebp - 0x21d4]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040f612
push str._r_n_r_n
call fcn.0040f6ae
pop ecx
push eax
push esi
push str._r_n_r_n
lea ecx, [ebp + 0xc]
call fcn.004427e4
mov edx, eax
mov dword [ebp + 0x5c], edx
test edx, edx
jle 0x4fccc1
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4fcc8e
lea eax, [ebp + 0xc]
push dword [ebp + 0x6c]
lea ecx, [eax + 4]
mov eax, dword [ebp + 0x1c]
sub eax, edx
add ecx, edx
sub eax, 4
push eax
push ecx
mov ecx, ebx
call fcn.004fc8c3
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0xc]
push 0
add eax, 2
push eax
call fcn.0043ab13
mov byte [ebp + 0x63], 0
jmp 0x4fcc0c
mov esi, dword [ebp + 0x1c]
add esi, 0xfffffffc
jns 0x4fcc0c
jmp 0x4fcc0a
push dword [ebp + 0x6c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x21d4]
push eax
call fcn.004fc8c3
jmp 0x4fcc0c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, 0x6dc188
push edi
call fcn.0040f6ae
pop ecx
push eax
xor esi, esi
lea ecx, [ebp + 0xc]
push esi
push edi
call fcn.004427e4
push eax
push esi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp + 0xc]
call fcn.0043b7ad
push 1
push str.______t___0_9_____t_
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.004478ad
lea ecx, [ebp - 0x13c]
call fcn.00447958
push esi
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0044708f
test al, al
jne 0x4fcda3
push str.BenchHttp_status_line_not_recognizable__
lea ecx, [ebp + 0x40]
call fcn.0040f49f
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x40]
call fcn.0040f579
mov esi, 0x7563ac
push esi
call fcn.0040f6ae
pop ecx
push eax
push esi
lea ecx, [ebp + 0x40]
call fcn.0040f612
cmp dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x40]
jae 0x4fcd9d
lea eax, [ebp + 0x40]
push eax
jmp 0x4fc96f
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x134]
sub eax, ecx
push 0xc
cdq
pop edi
idiv edi
cmp eax, 1
ja 0x4fcdc4
lea ecx, [ebp - 0x110]
jmp 0x4fcdc7
add ecx, 0xc
lea eax, [ebp + 0x40]
push eax
call fcn.00452d5a
cmp dword [eax + 0x14], 0x10
jb 0x4fcdd8
mov eax, dword [eax]
push eax
call fcn.00678742
pop ecx
push esi
push 1
lea ecx, [ebp + 0x40]
mov dword [ebx + 0x78], eax
call fcn.0040facf
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040fa4b
push 1
push str._.__:___t__.__r_n
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.004478ad
lea ecx, [ebp - 0xe4]
call fcn.00447958
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044708f
test al, al
je 0x4fcf51
lea eax, [ebx + 0x94]
mov dword [ebp + 4], fcn.0067a3eb
mov ebx, eax
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
mov esi, dword [ebp - 0xdc]
sub eax, esi
cdq
idiv edi
mov dword [ebp + 0x5c], eax
cmp eax, 1
jbe 0x4fce69
lea ecx, [esi + 0xc]
lea eax, [ebp + 0x40]
push eax
call fcn.00452d5a
cmp dword [ebp + 0x54], 0x10
mov ecx, dword [ebp + 0x40]
mov edi, ecx
mov byte [ebp - 4], 0xb
jae 0x4fd038
lea edi, [ebp + 0x40]
mov edx, edi
mov eax, dword [ebp + 0x50]
add eax, edx
cmp dword [ebp + 0x54], 0x10
jae 0x4fce98
lea ecx, [ebp + 0x40]
lea edx, [ebp + 4]
push edx
push edi
push eax
push ecx
call fcn.00457193
cmp dword [ebp + 0x5c], 2
lea ecx, [ebp - 0xb8]
jbe 0x4fceb3
lea ecx, [esi + 0x18]
lea eax, [ebp - 0xac]
push eax
call fcn.004575cf
mov esi, eax
push 0xc
pop eax
mov byte [ebp - 4], al
mov ecx, ebx
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.004571d2
mov ecx, dword [ebp + 0x38]
push esi
add ecx, 0x28
call fcn.0040f0f2
xor esi, esi
mov byte [ebp - 4], 0xb
push esi
push 1
lea ecx, [ebp - 0xac]
call fcn.0040facf
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00452d5a
push eax
lea ecx, [ebp - 0x50]
call fcn.0040f0f2
push esi
push 1
lea ecx, [ebp - 0xac]
call fcn.0040facf
push esi
push 1
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 0xa
call fcn.0040facf
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044708f
push 0xc
pop edi
test al, al
jne 0x4fce47
mov ebx, dword [ebp]
push str.location
lea ecx, [ebp + 0x40]
call fcn.0040f49f
lea eax, [ebp + 0x40]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebx + 0x94]
call fcn.00457241
mov eax, dword [ebp + 0x38]
lea ecx, [ebp - 0x7c]
add eax, 0x28
push eax
call fcn.0040fa4b
push esi
push 1
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 0xf
call fcn.0040facf
cmp dword [ebp - 0x6c], 0
je 0x4fcfa7
push dword [ebp + 0x6c]
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.004fd34f
xor ebx, ebx
lea ecx, [ebp - 0x7c]
push ebx
push 1
call fcn.0040facf
lea ecx, [ebp - 0xdc]
call fcn.005b5806
lea ecx, [ebp - 0x38]
call fcn.0044c333
lea ecx, [ebp - 0x2c]
call fcn.00420e5c
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040facf
lea ecx, [ebp - 0x134]
call fcn.005b5806
lea ecx, [ebp - 0x64]
call fcn.0044c333
lea ecx, [ebp - 0x58]
call fcn.00420e5c
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.0040facf
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040facf
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040facf
lea ecx, [ebp - 0x1d4]
call fcn.0043cbff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret 4
mov edx, ecx
jmp 0x4fce8a