Function at 0x4ebca7
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, 0x6b1c25
call fcn.00664608
mov eax, 0x21d0
call section..text
push ebx
xor eax, eax
mov dword [ebp - 0xa4], 1
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp + 0x34], eax
lea eax, [edi + 0x30]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x44], edi
mov dword [ebp - 0xa0], 6
jb 0x4ebd0f
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x4ebd17
mov ecx, dword [edi]
lea edx, [ebp + 0x34]
push edx
lea edx, [ebp - 0xac]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4ec63d
mov eax, dword [ebp + 0x34]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4ebd55
push str.Cannot_create_outgoing_socket
jmp 0x4ec642
and dword [ebp - 0x40], 0
lea eax, [ebp + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0x1006
push 0xffff
push ebx
mov dword [ebp + 0x18], 0x3e8
call esi
push 4
lea eax, [ebp + 0x18]
push eax
push 0x1005
push 0xffff
push ebx
call esi
push 4
lea eax, [ebp - 0x40]
push eax
push 0x1b
push 0x29
push ebx
call esi
mov eax, dword [ebp + 0x34]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp + 0x34]
mov esi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, 0xffffffff
jne 0x4ebdca
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_connect
jmp 0x4ec642
push 0
push 0
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea ecx, [ebp - 0x1dc]
call fcn.0043cc35
xor eax, eax
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x24], al
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
cmp dword [edi + 0x70], eax
je 0x4ebe21
push 4
push 0x6d5adc
call fcn.00410407
mov ecx, dword [edi + 0x70]
mov dword [ebp + 0x58], ecx
jmp 0x4ebe31
push 3
push 0x6d5ae4
call fcn.00410407
and dword [ebp + 0x58], 0
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
jb 0x4ebe3d
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.004441c2
push 0x6d5ae8
push dword [ebp + 0x58]
mov esi, eax
push 0x6d5aec
push str.Connection:_close_r_n
push 0x6eb750
call fcn.00487f80
push eax
push str._ver:
push str.User_Agent:_ut_core_BenchHttp
push 0x6d5ae8
push edi
push 0x6d5b14
push str._HTTP_1.1_r_n
lea eax, [edi + 0x18]
push eax
push 0x6d564c
push esi
call fcn.00445564
push eax
call fcn.004440ff
push eax
call fcn.00445564
push eax
call fcn.00445564
push eax
call fcn.004440ff
push eax
call fcn.00445564
push eax
call fcn.00445564
push eax
call fcn.00445564
mov ecx, eax
call fcn.0043ce2e
push eax
call fcn.00445564
push eax
call fcn.00445564
push eax
call fcn.00445564
mov ecx, eax
call fcn.0043cf21
push eax
call fcn.00445564
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x4ebf12
push 0x6d5ae8
lea eax, [edi + 0x48]
push eax
push 0x6d5b28
lea eax, [ebp - 0x1dc]
push eax
call fcn.00445564
push eax
call fcn.004440ff
push eax
call fcn.00445564
push 0x6d5ae8
lea eax, [ebp - 0x1dc]
push eax
call fcn.00445564
cmp dword [edi + 0x70], esi
je 0x4ebf38
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.004440ff
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00440063
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00440063
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
jb 0x4ebf66
mov eax, dword [ebp + 0x38]
push esi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebp + 0x38]
mov dword [edi + 0x9c], eax
call fcn.00410858
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00410858
cmp dword [edi + 0x9c], 0xffffffff
jne 0x4ebfa6
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_send
jmp 0x4ec642
and dword [ebp + 0x1c], 0
and dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0xf
mov byte [ebp + 0x1c], 0
mov byte [ebp - 4], 3
mov byte [ebp + 0x5f], 1
xor esi, esi
mov dword [ebp + 0x58], esi
push 0x2000
lea eax, [ebp - 0x21dc]
push 0
push eax
call fcn.006678b0
add esp, 0xc
lea eax, [ebp - 0x21dc]
push 0
push 0x1fff
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4ec11c
add dword [edi + 0xa0], eax
cmp byte [ebp + 0x5f], 0
je 0x4ec0ea
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004105af
cmp dword [ebp + 0x30], 0x10
lea edx, [ebp + 0x1c]
mov dword [ebp + 0x60], edx
jb 0x4ec02b
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x60], edx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x54], ecx
cmp ecx, 4
jb 0x4ec07f
lea eax, [ecx - 4]
cmp esi, eax
ja 0x4ec07f
lea eax, [ecx - 3]
add eax, edx
lea ecx, [edx + esi]
mov dword [ebp + 0x50], eax
sub eax, ecx
push eax
push 0xd
push ecx
jmp 0x4ec06e
push 4
push str._r_n_r_n
push esi
call fcn.0066699e
add esp, 0xc
test eax, eax
je 0x4ec092
mov eax, dword [ebp + 0x50]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.00667a10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ec050
mov ecx, dword [ebp + 0x54]
lea esi, [ecx - 4]
mov dword [ebp + 0x58], esi
test esi, esi
jns 0x4ebfc6
jmp 0x4ebfc1
sub esi, dword [ebp + 0x60]
test esi, esi
jle 0x4ec07c
cmp dword [ebp + 0x30], 0x10
lea eax, [ebp + 0x1c]
jb 0x4ec0a5
mov eax, dword [ebp + 0x1c]
lea ecx, [eax + 4]
mov eax, dword [ebp + 0x54]
sub eax, esi
add ecx, esi
sub eax, 4
cmp dword [ebp + 0x6c], 0
je 0x4ec0c6
push 0
push eax
push ecx
mov ecx, dword [ebp + 0x6c]
call fcn.0044d825
jmp 0x4ec0d0
push eax
push ecx
lea ecx, [edi + 0x7c]
call fcn.004105af
push 0
lea eax, [esi + 2]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0043b05e
mov esi, dword [ebp + 0x58]
mov byte [ebp + 0x5f], 0
jmp 0x4ebfc6
cmp dword [ebp + 0x6c], 0
je 0x4ec107
mov ecx, dword [ebp + 0x6c]
push 0
push eax
lea eax, [ebp - 0x21dc]
push eax
call fcn.0044d825
jmp 0x4ebfc6
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [edi + 0x7c]
call fcn.004105af
jmp 0x4ebfc6
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp + 0x30], 0x10
lea ebx, [ebp + 0x1c]
jb 0x4ec12f
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x2c]
cmp eax, 2
jb 0x4ec175
dec eax
add eax, ebx
mov dword [ebp + 0x50], eax
sub eax, ebx
push eax
push 0xd
push ebx
jmp 0x4ec167
push 2
push 0x6d5ae8
push esi
call fcn.0066699e
add esp, 0xc
test eax, eax
je 0x4ec214
mov eax, dword [ebp + 0x50]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.00667a10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ec145
or esi, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x48], 0xf
push esi
push ebx
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x5c], ebx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
call fcn.00437739
push 1
push str.______t___0_9_____t_
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.00447a46
lea ecx, [ebp - 0x144]
call fcn.00447ade
push ebx
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0044721c
test al, al
jne 0x4ec21b
push str.BenchHttp_status_line_not_recognizable__
lea ecx, [ebp + 0x38]
call fcn.0041046f
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x38]
call fcn.0044808c
push 0x752568
lea ecx, [ebp + 0x38]
call fcn.0041137f
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0xc]
call fcn.00413254
jmp 0x4ec64a
sub esi, ebx
jmp 0x4ec178
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x13c]
sub eax, ecx
push 0xc
cdq
pop esi
idiv esi
cmp eax, 1
ja 0x4ec23c
lea ecx, [ebp - 0x118]
jmp 0x4ec23f
add ecx, 0xc
lea eax, [ebp - 0x8c]
push eax
call fcn.0044c4d0
cmp dword [eax + 0x14], 0x10
jb 0x4ec253
mov eax, dword [eax]
push eax
call fcn.00674add
pop ecx
lea ecx, [ebp - 0x8c]
mov dword [edi + 0x78], eax
call fcn.00410858
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x3c], ebx
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00410794
push 1
push str._.__:___t__.__r_n
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.00447a46
lea ecx, [ebp - 0x10c]
call fcn.00447ade
push ebx
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0044721c
test al, al
je 0x4ec3f8
lea eax, [edi + 0x94]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0xe0]
mov edi, dword [ebp - 0x104]
sub eax, edi
cdq
idiv esi
mov dword [ebp + 0x60], eax
cmp eax, 1
jbe 0x4ec2ed
lea ecx, [edi + 0xc]
lea eax, [ebp + 0x38]
push eax
call fcn.0044c4d0
cmp dword [ebp + 0x4c], 0x10
lea ebx, [ebp + 0x38]
mov byte [ebp - 4], 0xb
jb 0x4ec306
mov ebx, dword [ebp + 0x38]
lea ecx, [ebp + 0x38]
jb 0x4ec30e
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea esi, [ebp + 0x38]
add eax, ecx
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp + 0x50], eax
jb 0x4ec322
mov esi, dword [ebp + 0x38]
cmp esi, eax
je 0x4ec343
mov edi, dword [ebp + 0x50]
sub ebx, esi
movzx eax, byte [esi]
push eax
call fcn.006767f0
mov byte [esi + ebx], al
inc esi
pop ecx
cmp esi, edi
jne 0x4ec32b
mov edi, dword [ebp - 0x104]
cmp dword [ebp + 0x60], 2
lea ecx, [ebp - 0xe0]
jbe 0x4ec352
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.0044c4d0
mov ecx, dword [ebp + 0x58]
push 0xc
pop eax
mov byte [ebp - 4], al
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0044d47f
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [eax]
add ecx, 0x28
call fcn.004100cf
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
call fcn.00410858
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xec]
call fcn.0044c4d0
lea ecx, [ebp - 0x3c]
xor ebx, ebx
cmp ecx, eax
je 0x4ec3bb
mov byte [ebp + 0x54], bl
push dword [ebp + 0x54]
push eax
call fcn.004100a8
lea ecx, [ebp - 0x8c]
call fcn.00410858
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xa
call fcn.00410858
push ebx
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0044721c
push 0xc
pop esi
test al, al
jne 0x4ec2cb
mov edi, dword [ebp - 0x44]
push 8
mov dword [ebp + 0x38], ebx
lea ecx, [ebp + 0x38]
push str.location
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], bl
call fcn.00410407
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [edi + 0x94]
call fcn.0044d50b
lea ecx, [ebp - 0x74]
mov eax, dword [eax]
add eax, 0x28
mov dword [ebp - 0x74], ebx
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.00410794
mov eax, dword [ebp + 0x4c]
mov esi, 0x1000
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x4ec480
mov ecx, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4ec477
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
cmp dword [ebp - 0x64], 0
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], bl
je 0x4ec4a1
push dword [ebp + 0x6c]
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.004ec982
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4ec4d3
mov ecx, dword [ebp - 0x74]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4ec4ca
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], bl
call fcn.0044b477
lea ecx, [ebp - 0xc0]
call fcn.0044b3fa
lea ecx, [ebp - 0xb4]
call fcn.004136d8
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x4ec533
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4ec52a
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], bl
call fcn.0044b477
lea ecx, [ebp - 0xd4]
call fcn.0044b3fa
lea ecx, [ebp - 0xc8]
call fcn.004136d8
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4ec593
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4ec58a
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], bl
cmp eax, 0x10
jb 0x4ec5d2
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4ec5c9
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], 0xf
mov byte [ebp + 0x1c], bl
cmp eax, 0x10
jb 0x4ec611
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4ec608
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], bl
call fcn.0043d111
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x64
leave
ret 4
push str.getaddrinfo_failed
lea ecx, [ebp + 0xc]
call fcn.00447bc3
push 0x75d7b0
lea eax, [ebp + 0xc]
push eax
call fcn.00665dc5
int3