Function at 0x50d5b4
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, 0x6da2c0
call fcn.006899cc
mov eax, 0x21d0
call section..text
xor eax, eax
mov dword [ebp - 0xa4], 1
push ebx
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 0x50d61b
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x50d623
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 0x50df45
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 0x50d661
push str.Cannot_create_outgoing_socket
jmp 0x50df4a
and dword [ebp - 0x40], 0
lea eax, [ebp + 0x18]
push esi
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 0x50d6d7
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_connect
jmp 0x50df4a
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.0045c4aa
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 0x50d72e
push 4
push 0x6fd9bc
call fcn.00414b60
mov ecx, dword [edi + 0x70]
mov dword [ebp + 0x58], ecx
jmp 0x50d73e
push 3
push 0x6fd9c4
call fcn.00414b60
and dword [ebp + 0x58], 0
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
jb 0x50d74a
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.004621f9
push str._ver:
push str.User_Agent:_ut_core_BenchHttp
push 0x6fd9c8
push edi
push 0x6fd9f4
push str._HTTP_1.1_r_n
lea ecx, [edi + 0x18]
push ecx
push 0x77aa34
push eax
call fcn.004634b5
push eax
call fcn.00462136
push eax
call fcn.004634b5
push eax
call fcn.004634b5
push eax
call fcn.00462136
push eax
call fcn.004634b5
push eax
call fcn.004634b5
push eax
call fcn.004634b5
mov esi, eax
call fcn.004a652c
push 0x6fd9cc
push str.Connection:_close_r_n
push 0x7140ec
push eax
mov ecx, esi
call fcn.004236c0
push eax
call fcn.004634b5
push eax
call fcn.004634b5
push eax
call fcn.004634b5
mov esi, 0x6fd9c8
mov ecx, eax
push esi
push dword [ebp + 0x58]
call fcn.0041baa0
push eax
call fcn.004634b5
cmp dword [edi + 0x58], 0
je 0x50d81b
push esi
lea eax, [edi + 0x48]
push eax
push 0x6fda08
lea eax, [ebp - 0x1dc]
push eax
call fcn.004634b5
push eax
call fcn.00462136
push eax
call fcn.004634b5
push esi
lea eax, [ebp - 0x1dc]
push eax
call fcn.004634b5
cmp dword [edi + 0x70], 0
je 0x50d83e
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.00462136
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.004145c0
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 2
call fcn.004145c0
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
jb 0x50d86f
mov eax, dword [ebp + 0x38]
push 0
push esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
lea ecx, [ebp + 0x38]
mov dword [edi + 0x9c], eax
call fcn.0040fad0
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040fad0
cmp dword [edi + 0x9c], 0xffffffff
jne 0x50d8ae
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_send
jmp 0x50df4a
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.0068ccc0
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 0x50da24
add dword [edi + 0xa0], eax
cmp byte [ebp + 0x5f], 0
je 0x50d9f2
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00414c90
cmp dword [ebp + 0x30], 0x10
lea edx, [ebp + 0x1c]
mov dword [ebp + 0x60], edx
jb 0x50d933
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x60], edx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x54], ecx
cmp ecx, 4
jb 0x50d987
lea eax, [ecx - 4]
cmp esi, eax
ja 0x50d987
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 0x50d976
push 4
push str._r_n_r_n
push esi
call fcn.0068bdae
add esp, 0xc
test eax, eax
je 0x50d99a
mov eax, dword [ebp + 0x50]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.0068ce20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50d958
mov ecx, dword [ebp + 0x54]
lea esi, [ecx - 4]
mov dword [ebp + 0x58], esi
test esi, esi
jns 0x50d8ce
jmp 0x50d8c9
sub esi, dword [ebp + 0x60]
test esi, esi
jle 0x50d984
cmp dword [ebp + 0x30], 0x10
lea eax, [ebp + 0x1c]
jb 0x50d9ad
mov eax, dword [ebp + 0x1c]
lea edx, [eax + 4]
mov eax, dword [ebp + 0x54]
sub eax, esi
add edx, esi
sub eax, 4
cmp dword [ebp + 0x6c], 0
je 0x50d9ce
mov ecx, dword [ebp + 0x6c]
push 0
push eax
push edx
call fcn.0046b661
jmp 0x50d9d8
push eax
lea ecx, [edi + 0x7c]
push edx
call fcn.00414c90
push 0
lea eax, [esi + 2]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00415d50
mov esi, dword [ebp + 0x58]
mov byte [ebp + 0x5f], 0
jmp 0x50d8ce
cmp dword [ebp + 0x6c], 0
je 0x50da0f
mov ecx, dword [ebp + 0x6c]
push 0
push eax
lea eax, [ebp - 0x21dc]
push eax
call fcn.0046b661
jmp 0x50d8ce
push eax
lea eax, [ebp - 0x21dc]
lea ecx, [edi + 0x7c]
push eax
call fcn.00414c90
jmp 0x50d8ce
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp + 0x30], 0x10
lea ebx, [ebp + 0x1c]
jb 0x50da37
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x2c]
cmp eax, 2
jb 0x50da7d
dec eax
add eax, ebx
mov dword [ebp + 0x50], eax
sub eax, ebx
push eax
push 0xd
push ebx
jmp 0x50da6f
push 2
push 0x6fd9c8
push esi
call fcn.0068bdae
add esp, 0xc
test eax, eax
je 0x50db1c
mov eax, dword [ebp + 0x50]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.0068ce20
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50da4d
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.00457907
push 1
push str.______t___0_9_____t_
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.004657c1
lea ecx, [ebp - 0x144]
call fcn.00465859
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.00464f97
test al, al
jne 0x50db23
push str.BenchHttp_status_line_not_recognizable__
lea ecx, [ebp + 0x38]
call fcn.00413860
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x38]
call fcn.0041a520
push 0x77d4b4
lea ecx, [ebp + 0x38]
call fcn.0041a510
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0xc]
call fcn.00410e30
jmp 0x50df52
sub esi, ebx
jmp 0x50da80
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x13c]
sub eax, ecx
push 0xc
cdq
pop esi
idiv esi
cmp eax, 1
ja 0x50db44
lea ecx, [ebp - 0x118]
jmp 0x50db47
add ecx, 0xc
lea eax, [ebp - 0x8c]
push eax
call fcn.0046a35a
cmp dword [eax + 0x14], 0x10
jb 0x50db5b
mov eax, dword [eax]
push eax
call fcn.00699eed
pop ecx
lea ecx, [ebp - 0x8c]
mov dword [edi + 0x78], eax
call fcn.0040fad0
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.0040fd80
push 1
push str._.__:___t__.__r_n
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.004657c1
lea ecx, [ebp - 0x10c]
call fcn.00465859
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.00464f97
test al, al
je 0x50dd00
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 0x50dbf5
lea ecx, [edi + 0xc]
lea eax, [ebp + 0x38]
push eax
call fcn.0046a35a
cmp dword [ebp + 0x4c], 0x10
lea ebx, [ebp + 0x38]
mov byte [ebp - 4], 0xb
jb 0x50dc0e
mov ebx, dword [ebp + 0x38]
lea ecx, [ebp + 0x38]
jb 0x50dc16
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 0x50dc2a
mov esi, dword [ebp + 0x38]
cmp esi, eax
je 0x50dc4b
mov edi, dword [ebp + 0x50]
sub ebx, esi
movzx eax, byte [esi]
push eax
call fcn.0069be0c
mov byte [esi + ebx], al
inc esi
pop ecx
cmp esi, edi
jne 0x50dc33
mov edi, dword [ebp - 0x104]
cmp dword [ebp + 0x60], 2
lea ecx, [ebp - 0xe0]
jbe 0x50dc5a
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.0046a35a
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.0046b2e5
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [eax]
add ecx, 0x28
call fcn.00415dd0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
call fcn.0040fad0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xec]
call fcn.0046a35a
lea ecx, [ebp - 0x3c]
xor ebx, ebx
cmp ecx, eax
je 0x50dcc3
mov byte [ebp + 0x54], bl
push dword [ebp + 0x54]
push eax
call fcn.00416240
lea ecx, [ebp - 0x8c]
call fcn.0040fad0
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xa
call fcn.0040fad0
push ebx
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00464f97
push 0xc
pop esi
test al, al
jne 0x50dbd3
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.00414b60
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [edi + 0x94]
call fcn.0046b371
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.0040fd80
mov eax, dword [ebp + 0x4c]
push 0x10
pop esi
mov byte [ebp - 4], 0xf
cmp eax, esi
jb 0x50dd88
mov ecx, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, 0x1000
jb 0x50dd7f
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.0068976d
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 0x50dda9
push dword [ebp + 0x6c]
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0050e28a
mov eax, dword [ebp - 0x60]
mov edi, 0x1000
cmp eax, esi
jb 0x50dddf
mov ecx, dword [ebp - 0x74]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, edi
jb 0x50ddd6
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
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.004692ee
lea ecx, [ebp - 0xc0]
call fcn.00469289
lea ecx, [ebp - 0xb4]
call fcn.00411590
mov eax, dword [ebp - 0x28]
cmp eax, esi
jb 0x50de3e
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, edi
jb 0x50de35
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
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.004692ee
lea ecx, [ebp - 0xd4]
call fcn.00469289
lea ecx, [ebp - 0xc8]
call fcn.00411590
mov eax, dword [ebp - 0x48]
cmp eax, esi
jb 0x50de9d
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, edi
jb 0x50de94
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
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, esi
jb 0x50dedb
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, edi
jb 0x50ded2
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], 0xf
mov byte [ebp + 0x1c], bl
pop esi
jb 0x50df1a
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, edi
jb 0x50df11
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
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.0045c68b
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x64
leave
ret 4
push str.getaddrinfo_failed
lea ecx, [ebp + 0xc]
call fcn.0041c810
push 0x78b474
lea eax, [ebp + 0xc]
push eax
call fcn.0068b1d5
int3