Function at 0x4f8ad3
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x6bb698
call fcn.0066bd6c
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 0x4f8b3b
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x4f8b43
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 0x4f9469
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 0x4f8b81
push str.Cannot_create_outgoing_socket
jmp 0x4f946e
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 0x4f8bf6
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_connect
jmp 0x4f946e
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.0043c724
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 0x4f8c4d
push 4
push 0x6dfcd4
call fcn.0040fe77
mov ecx, dword [edi + 0x70]
mov dword [ebp + 0x58], ecx
jmp 0x4f8c5d
push 3
push 0x6dfcdc
call fcn.0040fe77
and dword [ebp + 0x58], 0
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
jb 0x4f8c69
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.00443cb8
push 0x6dfce0
push dword [ebp + 0x58]
mov esi, eax
push 0x6dfce4
push str.Connection:_close_r_n
push 0x6f5990
call fcn.00494e4f
push eax
push str._ver:
push str.User_Agent:_ut_core_BenchHttp
push 0x6dfce0
push edi
push 0x6dfd2c
push str._HTTP_1.1_r_n
lea eax, [edi + 0x18]
push eax
push 0x6df1c8
push esi
call fcn.00445150
push eax
call fcn.00443bf5
push eax
call fcn.00445150
push eax
call fcn.00445150
push eax
call fcn.00443bf5
push eax
call fcn.00445150
push eax
call fcn.00445150
push eax
call fcn.00445150
mov ecx, eax
call fcn.0043c91d
push eax
call fcn.00445150
push eax
call fcn.00445150
push eax
call fcn.00445150
mov ecx, eax
call fcn.0043ca10
push eax
call fcn.00445150
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x4f8d3e
push 0x6dfce0
lea eax, [edi + 0x48]
push eax
push 0x6dfd40
lea eax, [ebp - 0x1dc]
push eax
call fcn.00445150
push eax
call fcn.00443bf5
push eax
call fcn.00445150
push 0x6dfce0
lea eax, [ebp - 0x1dc]
push eax
call fcn.00445150
cmp dword [edi + 0x70], esi
je 0x4f8d64
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.00443bf5
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.0043fb52
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1d8]
call fcn.0043fb52
cmp dword [ebp + 0x4c], 0x10
lea eax, [ebp + 0x38]
jb 0x4f8d92
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.004102c8
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004102c8
cmp dword [edi + 0x9c], 0xffffffff
jne 0x4f8dd2
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket_cannot_send
jmp 0x4f946e
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.0066f070
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 0x4f8f48
add dword [edi + 0xa0], eax
cmp byte [ebp + 0x5f], 0
je 0x4f8f16
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0041001f
cmp dword [ebp + 0x30], 0x10
lea edx, [ebp + 0x1c]
mov dword [ebp + 0x60], edx
jb 0x4f8e57
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x60], edx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x54], ecx
cmp ecx, 4
jb 0x4f8eab
lea eax, [ecx - 4]
cmp esi, eax
ja 0x4f8eab
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 0x4f8e9a
push 4
push str._r_n_r_n
push esi
call fcn.0066e15e
add esp, 0xc
test eax, eax
je 0x4f8ebe
mov eax, dword [ebp + 0x50]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.0066f1d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f8e7c
mov ecx, dword [ebp + 0x54]
lea esi, [ecx - 4]
mov dword [ebp + 0x58], esi
test esi, esi
jns 0x4f8df2
jmp 0x4f8ded
sub esi, dword [ebp + 0x60]
test esi, esi
jle 0x4f8ea8
cmp dword [ebp + 0x30], 0x10
lea eax, [ebp + 0x1c]
jb 0x4f8ed1
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 0x4f8ef2
push 0
push eax
push ecx
mov ecx, dword [ebp + 0x6c]
call fcn.0045a720
jmp 0x4f8efc
push eax
push ecx
lea ecx, [edi + 0x7c]
call fcn.0041001f
push 0
lea eax, [esi + 2]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0043ab4d
mov esi, dword [ebp + 0x58]
mov byte [ebp + 0x5f], 0
jmp 0x4f8df2
cmp dword [ebp + 0x6c], 0
je 0x4f8f33
mov ecx, dword [ebp + 0x6c]
push 0
push eax
lea eax, [ebp - 0x21dc]
push eax
call fcn.0045a720
jmp 0x4f8df2
push eax
lea eax, [ebp - 0x21dc]
push eax
lea ecx, [edi + 0x7c]
call fcn.0041001f
jmp 0x4f8df2
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp + 0x30], 0x10
lea ebx, [ebp + 0x1c]
jb 0x4f8f5b
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x2c]
cmp eax, 2
jb 0x4f8fa1
dec eax
add eax, ebx
mov dword [ebp + 0x50], eax
sub eax, ebx
push eax
push 0xd
push ebx
jmp 0x4f8f93
push 2
push 0x6dfce0
push esi
call fcn.0066e15e
add esp, 0xc
test eax, eax
je 0x4f9040
mov eax, dword [ebp + 0x50]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.0066f1d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f8f71
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.00437228
push 1
push str.______t___0_9_____t_
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.00448d66
lea ecx, [ebp - 0x144]
call fcn.00448e1b
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.00448509
test al, al
jne 0x4f9047
push str.BenchHttp_status_line_not_recognizable__
lea ecx, [ebp + 0x38]
call fcn.0040fedf
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x38]
call fcn.0044970c
push 0x75ba98
lea ecx, [ebp + 0x38]
call fcn.00410def
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0xc]
call fcn.00412cc4
jmp 0x4f9476
sub esi, ebx
jmp 0x4f8fa4
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x13c]
sub eax, ecx
push 0xc
cdq
pop esi
idiv esi
cmp eax, 1
ja 0x4f9068
lea ecx, [ebp - 0x118]
jmp 0x4f906b
add ecx, 0xc
lea eax, [ebp - 0x8c]
push eax
call fcn.00454ad2
cmp dword [eax + 0x14], 0x10
jb 0x4f907f
mov eax, dword [eax]
push eax
call fcn.0067c59d
pop ecx
lea ecx, [ebp - 0x8c]
mov dword [edi + 0x78], eax
call fcn.004102c8
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.00410204
push 1
push str._.__:___t__.__r_n
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.00448d66
lea ecx, [ebp - 0x10c]
call fcn.00448e1b
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.00448509
test al, al
je 0x4f9224
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 0x4f9119
lea ecx, [edi + 0xc]
lea eax, [ebp + 0x38]
push eax
call fcn.00454ad2
cmp dword [ebp + 0x4c], 0x10
lea ebx, [ebp + 0x38]
mov byte [ebp - 4], 0xb
jb 0x4f9132
mov ebx, dword [ebp + 0x38]
lea ecx, [ebp + 0x38]
jb 0x4f913a
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 0x4f914e
mov esi, dword [ebp + 0x38]
cmp esi, eax
je 0x4f916f
mov edi, dword [ebp + 0x50]
sub ebx, esi
movzx eax, byte [esi]
push eax
call fcn.0067e2b0
mov byte [esi + ebx], al
inc esi
pop ecx
cmp esi, edi
jne 0x4f9157
mov edi, dword [ebp - 0x104]
cmp dword [ebp + 0x60], 2
lea ecx, [ebp - 0xe0]
jbe 0x4f917e
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x8c]
push eax
call fcn.00454ad2
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.00459071
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [eax]
add ecx, 0x28
call fcn.0040fb3f
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xb
call fcn.004102c8
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xec]
call fcn.00454ad2
lea ecx, [ebp - 0x3c]
xor ebx, ebx
cmp ecx, eax
je 0x4f91e7
mov byte [ebp + 0x54], bl
push dword [ebp + 0x54]
push eax
call fcn.0040fb18
lea ecx, [ebp - 0x8c]
call fcn.004102c8
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xa
call fcn.004102c8
push ebx
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00448509
push 0xc
pop esi
test al, al
jne 0x4f90f7
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.0040fe77
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp + 0x10]
push eax
lea ecx, [edi + 0x94]
call fcn.004590fd
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.00410204
mov eax, dword [ebp + 0x4c]
mov esi, 0x1000
mov byte [ebp - 4], 0xf
cmp eax, 0x10
jb 0x4f92ac
mov ecx, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x58], ecx
cmp eax, esi
jb 0x4f92a3
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp + 0x58]
push eax
push ecx
call fcn.0066bb0a
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 0x4f92cd
push dword [ebp + 0x6c]
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.004f97ae
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x4f92ff
mov ecx, dword [ebp - 0x74]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4f92f6
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0066bb0a
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.0044d5a6
lea ecx, [ebp - 0xc0]
call fcn.0044d511
lea ecx, [ebp - 0xb4]
call fcn.00413148
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x4f935f
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4f9356
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0066bb0a
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.0044d5a6
lea ecx, [ebp - 0xd4]
call fcn.0044d511
lea ecx, [ebp - 0xc8]
call fcn.00413148
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x4f93bf
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4f93b6
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0066bb0a
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 0x4f93fe
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4f93f5
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0066bb0a
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 0x4f943d
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x60], ecx
cmp eax, esi
jb 0x4f9434
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0066bb0a
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.0043cc00
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.00449061
push 0x7684e8
lea eax, [ebp + 0xc]
push eax
call fcn.0066d585
int3