Function at 0x40e540
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 4], 0
push edi
mov dword [ebp - 0x2f4], ebx
je 0x40e5d0
mov ecx, dword [ebx + 0x4058]
call fcn.0040a5a0
mov dword [ebp - 0x2e4], eax
test eax, eax
jle 0x40e5d0
xor edi, edi
lea ecx, [ebx + 0x5c]
mov edi, edi
cmp dword [ecx], 0
je 0x40e593
inc edi
add ecx, 0x10
cmp edi, 0x400
jb 0x40e580
jmp 0x40e5c9
mov esi, edi
add esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x2e4]
mov dword [ebx + esi*8 + 0x5c], eax
lea eax, [edi + 6]
add eax, eax
mov dword [ebx + esi*8 + 0x64], 0
mov dword [ebx + eax*8], ecx
mov dword [ebx + esi*8 + 0x58], 0
cmp edi, 0x400
jb 0x40e5d0
mov eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea esi, [ebx + 0xc]
xor edi, edi
push esi
mov dword [ebp - 0x2dc], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x28]
mov byte [ebp - 0x2e5], 0
test ecx, ecx
je 0x40e676
mov eax, dword [ebx + 0x24]
dec ecx
mov edi, dword [eax + ecx*4]
mov dword [ebp - 0x2dc], edi
mov dword [ebx + 0x28], ecx
je 0x40e66f
mov eax, dword [ebx + 0x2c]
sub eax, ecx
cmp eax, 0x64
jb 0x40e66f
lea eax, [ecx*4 + 0x28]
push eax
mov dword [ebp - 0x2e0], eax
call fcn.00414cfb
mov esi, eax
add esp, 4
test esi, esi
je 0x40e66c
push dword [ebp - 0x2e0]
push 0
push esi
call fcn.0041e930
mov ecx, dword [ebx + 0x28]
add esp, 0xc
shl ecx, 2
push ecx
push dword [ebx + 0x24]
push esi
call fcn.0041bfc0
mov eax, dword [ebx + 0x24]
add esp, 0xc
test eax, eax
je 0x40e660
push eax
call fcn.00414cc3
add esp, 4
mov eax, dword [ebx + 0x28]
add eax, 0xa
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x2c], eax
lea esi, [ebx + 0xc]
mov byte [ebp - 0x2e5], 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x2e5], 0
je 0x40ea69
mov eax, dword [edi + 4]
cmp eax, 4
je 0x40e86a
cmp eax, 8
je 0x40e6ee
cmp eax, 0xc
jne 0x40ea69
mov ecx, dword [edi + 0x10]
xor esi, esi
lea eax, [ebx + 0x5c]
lea esp, [esp]
cmp dword [eax], ecx
je 0x40e6c5
inc esi
add eax, 0x10
cmp esi, 0x400
jb 0x40e6b0
jmp 0x40ea69
lea eax, [esi + 6]
add eax, eax
mov eax, dword [ebx + eax*8]
test eax, eax
je 0x40e6d8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
add esi, esi
xorps xmm0, xmm0
movq qword [ebx + esi*8 + 0x58], xmm0
movq qword [ebx + esi*8 + 0x60], xmm0
jmp 0x40ea69
cmp dword [ebx + 4], 0
je 0x40f177
mov esi, dword [ebp - 0x2dc]
xor edi, edi
mov ecx, dword [esi + 0x10]
lea eax, [ebx + 0x5c]
cmp dword [eax], ecx
je 0x40e71b
inc edi
add eax, 0x10
cmp edi, 0x400
jb 0x40e706
jmp 0x40e7e2
lea eax, [edi + 6]
shl eax, 4
add eax, ebx
mov dword [ebp - 0x2e4], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x40e748
push 0
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [esi + 0x14]
je 0x40e7d6
push 0x20
call fcn.00414cfb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2e0], ecx
test ecx, ecx
je 0x40e7b5
xorps xmm0, xmm0
movq qword [ecx], xmm0
movq qword [ecx + 8], xmm0
movq qword [ecx + 0x10], xmm0
movq qword [ecx + 0x18], xmm0
mov dword [ecx], 0x20
mov dword [ecx + 4], 0xc
mov dword [ecx + 0xc], 4
mov eax, dword [esi + 0x10]
lea esi, [ebx + 0x34]
mov dword [ecx + 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call eax
push dword [ebp - 0x2e0]
lea ecx, [ebx + 0x30]
call fcn.0040f830
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call eax
mov esi, dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x2e4]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
add eax, eax
xorps xmm0, xmm0
movq qword [ebx + eax*8 + 0x58], xmm0
movq qword [ebx + eax*8 + 0x60], xmm0
cmp edi, 0x400
jb 0x40ea69
push 0x20
call fcn.00414cfb
mov edi, eax
add esp, 4
test edi, edi
je 0x40ea69
xorps xmm0, xmm0
movq qword [edi], xmm0
movq qword [edi + 8], xmm0
movq qword [edi + 0x10], xmm0
movq qword [edi + 0x18], xmm0
mov dword [edi], 0x20
mov dword [edi + 4], 0xc
mov dword [edi + 0xc], 4
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x30]
call fcn.00409c10
test al, al
je 0x40e85b
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
shl eax, 2
push eax
push ecx
lea eax, [ecx + 4]
push eax
call fcn.00414590
mov eax, dword [ebx + 0x4c]
add esp, 0xc
mov dword [eax], edi
inc dword [ebx + 0x50]
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40ea69
cmp dword [ebx + 4], 0
je 0x40f177
mov ecx, dword [edi + 0x10]
xor esi, esi
lea eax, [ebx + 0x5c]
lea esp, [esp]
cmp dword [eax], ecx
je 0x40e895
inc esi
add eax, 0x10
cmp esi, 0x400
jb 0x40e880
jmp 0x40ea69
mov ecx, esi
shl ecx, 4
add ecx, ebx
mov dword [ebp - 0x2dc], ecx
mov eax, dword [ecx + 0x58]
cmp eax, 1
jne 0x40e8e8
cmp dword [edi + 0x1c], 0
lea eax, [ebp - 0x88]
jne 0x40e8bd
push str.HTTP_1.1_200_Connection_established_n_rProxy_agent:_Proxy_n_r_n_r
jmp 0x40e8c2
push str.HTTP_1.1_502_Connection_abort_n_rProxy_agent:_Proxy_n_r_n_r
push eax
call fcn.00415eca
lea ecx, [ebp - 0x88]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e8d4
sub ecx, edx
push 0
push ecx
lea eax, [ebp - 0x88]
jmp 0x40e933
cmp eax, 4
jne 0x40e94b
movzx eax, word [edi + 0x18]
xorps xmm0, xmm0
movq qword [ebp - 0x2f0], xmm0
push eax
mov byte [ebp - 0x2f0], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [edi + 0x1c], 0
mov word [ebp - 0x2ee], ax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2ec], eax
setne al
add al, 0x5a
push 0
mov byte [ebp - 0x2ef], al
push 8
lea eax, [ebp - 0x2f0]
push eax
lea eax, [esi + 6]
add eax, eax
push dword [ebx + eax*8]
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
mov ecx, dword [ebp - 0x2dc]
jmp 0x40e9ad
cmp eax, 5
jne 0x40e9a7
xorps xmm0, xmm0
movq qword [ebp - 0x2d4], xmm0
mov byte [ebp - 0x2d4], al
mov eax, dword [edi + 0x1c]
neg eax
sbb al, al
and al, 5
mov byte [ebp - 0x2d3], al
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2d0], eax
movzx eax, word [edi + 0x18]
push eax
mov word [ebp - 0x2cc], 0
mov byte [ebp - 0x2d1], 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2cc], ax
push 0
push 0xa
lea eax, [ebp - 0x2d4]
jmp 0x40e933
mov eax, dword [ebp - 0x2ec]
test eax, eax
jle 0x40e9bd
mov dword [ecx + 0x64], 2
jmp 0x40ea69
push 0x20
call fcn.00414cfb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2e0], ecx
test ecx, ecx
je 0x40ea48
xorps xmm0, xmm0
movq qword [ecx], xmm0
movq qword [ecx + 8], xmm0
movq qword [ecx + 0x10], xmm0
movq qword [ecx + 0x18], xmm0
mov dword [ecx], 0x20
mov dword [ecx + 4], 0xc
mov dword [ecx + 0xc], 4
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x30]
call fcn.00409c10
test al, al
je 0x40ea3e
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
shl eax, 2
push eax
push ecx
lea eax, [ecx + 4]
push eax
call fcn.00414590
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
mov dword [eax], ecx
inc dword [ebx + 0x50]
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi + 6]
add eax, eax
push dword [ebx + eax*8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x2dc]
xorps xmm0, xmm0
movq qword [eax + 0x58], xmm0
movq qword [eax + 0x60], xmm0
cmp dword [ebx + 4], 0
je 0x40f177
mov edi, 0x400
lea esi, [ebx + 0x60]
mov dword [ebp - 0x2d8], edi
cmp dword [esi - 4], 0
je 0x40f167
mov eax, dword [esi]
test eax, eax
je 0x40f167
lea ecx, [ebp - 0x2d4]
push ecx
push 0
push 0
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x18c], eax
push ecx
inc eax
push eax
mov dword [ebp - 0x190], 1
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x40eb94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x40f167
cmp dword [esi + 4], 2
jne 0x40eb7b
push 0x20
call fcn.00414cfb
mov edi, eax
add esp, 4
test edi, edi
je 0x40eb75
xorps xmm0, xmm0
movq qword [edi], xmm0
movq qword [edi + 8], xmm0
movq qword [edi + 0x10], xmm0
movq qword [edi + 0x18], xmm0
mov dword [edi], 0x20
mov dword [edi + 4], 0xc
mov dword [edi + 0xc], 4
mov eax, dword [esi - 4]
mov dword [edi + 0x10], eax
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x30]
call fcn.00409c10
test al, al
je 0x40eb6b
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
shl eax, 2
push eax
push ecx
lea eax, [ecx + 4]
push eax
call fcn.00414590
mov eax, dword [ebx + 0x4c]
add esp, 0xc
mov dword [eax], edi
inc dword [ebx + 0x50]
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x2d8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movq qword [esi - 8], xmm0
movq qword [esi], xmm0
jmp 0x40f167
jle 0x40f167
push 0
push 0x200
lea eax, [ebp - 0x288]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov dword [ebp - 0x2dc], edi
test edi, edi
jle 0x40f0da
mov eax, dword [esi + 4]
test eax, eax
jne 0x40eeba
push 8
lea eax, [ebp - 0x288]
push str.CONNECT
push eax
call fcn.004165b0
add esp, 0xc
test eax, eax
jne 0x40ed6a
mov byte [ebp - 0x88], al
lea eax, [ebp - 0x280]
push 0x20
xor edi, edi
push eax
mov dword [ebp - 0x2e4], edi
call fcn.00414f40
add esp, 8
test eax, eax
je 0x40ec82
lea eax, [ebp - 0x280]
push 0x20
push eax
call fcn.00414f40
mov byte [eax], 0
lea eax, [ebp - 0x280]
push 0x3a
push eax
call fcn.00414f40
add esp, 0x10
test eax, eax
je 0x40ec82
lea eax, [ebp - 0x280]
push 0x3a
push eax
call fcn.00414f40
inc eax
push eax
call fcn.0041506b
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x280]
push 0x3a
push eax
call fcn.00414f40
mov byte [eax], 0
push 0x80
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004154d0
add esp, 0x14
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x88]
call fcn.0040a010
test eax, eax
je 0x40f145
test edi, edi
je 0x40f145
mov ecx, dword [esi]
call fcn.0040a6a0
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esi]
mov edi, eax
call fcn.0040a6e0
push eax
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x88]
push eax
push edi
push str.Proxy:_New_HTTP__from__s_to__s:_d____d_n
call fcn.004156af
mov eax, dword [ebp - 0x2dc]
add eax, 0x18
add esp, 0x14
mov ecx, eax
cmp eax, 0x20
mov dword [ebp - 0x2e0], eax
mov eax, 0x20
cmovb ecx, eax
mov dword [esi - 8], 1
call fcn.00409c80
mov edi, eax
mov dword [ebp - 0x2dc], edi
test edi, edi
je 0x40f161
mov eax, dword [ebp - 0x2e0]
cmp eax, 0x20
mov ecx, 0x20
cmovb eax, ecx
mov dword [edi], eax
mov dword [edi + 4], 4
mov dword [edi + 0xc], 4
mov eax, dword [esi - 4]
lea ecx, [ebp - 0x88]
mov dword [edi + 0x10], eax
call fcn.0040a010
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x2e4]
mov dword [edi + 0x18], eax
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x2dc]
lea ecx, [ebx + 0x30]
call fcn.0040f830
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40f161
mov al, byte [ebp - 0x288]
cmp al, 4
jne 0x40ee69
cmp edi, 8
jb 0x40f145
cmp byte [ebp - 0x287], 1
jne 0x40f145
push dword [ebp - 0x284]
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call edi
mov ecx, dword [esi]
mov ebx, eax
call fcn.0040a6a0
push eax
call edi
mov ecx, dword [esi]
mov edi, eax
call fcn.0040a6e0
push eax
push dword [ebp - 0x286]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push ebx
push edi
push str.Proxy:_New_SOCKS4_from__s_to__s:_d____d_n
call fcn.004156af
mov edi, dword [ebp - 0x2dc]
add edi, 0x18
add esp, 0x14
mov eax, 0x20
mov ecx, edi
cmp edi, 0x20
cmovb ecx, eax
mov dword [esi - 8], 4
call fcn.00409c80
mov ebx, eax
mov dword [ebp - 0x2e0], ebx
test ebx, ebx
je 0x40f15b
mov eax, 0x20
cmp edi, 0x20
cmovb edi, eax
mov dword [ebx], edi
mov dword [ebx + 4], 4
mov dword [ebx + 0xc], 4
mov eax, dword [esi - 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x284]
mov dword [ebx + 0x14], eax
push dword [ebp - 0x286]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebx + 0x18], eax
mov ebx, dword [ebp - 0x2f4]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x2e0]
lea ecx, [ebx + 0x30]
call fcn.0040f830
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40f161
cmp al, 5
jne 0x40f145
cmp edi, 3
jb 0x40f145
xor eax, eax
push eax
mov word [ebp - 0x288], ax
push 2
lea eax, [ebp - 0x288]
push eax
push dword [esi]
mov dword [esi - 8], 5
mov word [ebp - 0x288], 5
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 2
jne 0x40f145
mov dword [esi + 4], 1
jmp 0x40f161
cmp eax, 1
jne 0x40f01e
cmp byte [ebp - 0x288], 5
jne 0x40f145
cmp byte [ebp - 0x287], al
jne 0x40f145
mov al, byte [ebp - 0x285]
cmp al, 1
jne 0x40eef4
mov edi, dword [ebp - 0x284]
push dword [ebp - 0x280]
jmp 0x40ef58
cmp al, 3
jne 0x40f145
mov edi, dword [ebp - 0x284]
and edi, 0xff
cmp edi, 0x40
jae 0x40f145
push 0x40
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.0041e930
add esp, 0xc
lea eax, [ebp - 0x283]
push edi
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.0041bfc0
add esp, 0xc
lea ecx, [ebp - 0x2c8]
call fcn.0040a010
movzx ecx, byte [ebp - 0x284]
mov edi, eax
movzx ecx, word [ebp + ecx - 0x283]
push ecx
mov dword [ebp - 0x2e0], edi
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x2e4], eax
test edi, edi
je 0x40f145
test eax, eax
je 0x40f145
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
call edi
mov ecx, dword [esi]
mov ebx, eax
call fcn.0040a6a0
push eax
call edi
mov ecx, dword [esi]
mov edi, eax
call fcn.0040a6e0
push eax
push dword [ebp - 0x2e4]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
push ecx
push ebx
push edi
push str.Proxy:_New_SOCKS5_from__s_to__s:_d____d_n
call fcn.004156af
mov edi, dword [ebp - 0x2dc]
add edi, 0x18
add esp, 0x14
mov ecx, edi
cmp edi, 0x20
mov ebx, 0x20
cmovb ecx, ebx
call fcn.00409c80
mov ecx, eax
mov dword [ebp - 0x2dc], ecx
test ecx, ecx
je 0x40f15b
cmp edi, ebx
cmovb edi, ebx
mov ebx, dword [ebp - 0x2f4]
mov dword [ecx], edi
mov dword [ecx + 4], 4
mov dword [ecx + 0xc], 4
mov eax, dword [esi - 4]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x2e0]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ecx + 0x18], eax
jmp 0x40ed46
lea ecx, [edi + 0x18]
cmp ecx, 0x20
mov eax, ecx
mov dword [ebp - 0x2e4], ecx
mov ecx, 0x20
cmovb eax, ecx
mov dword [ebp - 0x2e0], eax
test eax, eax
je 0x40f161
push eax
call fcn.00414cfb
mov edi, eax
add esp, 4
mov dword [ebp - 0x2ec], edi
test edi, edi
je 0x40f161
push dword [ebp - 0x2e0]
push 0
push edi
call fcn.0041e930
mov eax, dword [ebp - 0x2e4]
add esp, 0xc
cmp eax, 0x20
mov ecx, 0x20
cmovb eax, ecx
mov dword [edi], eax
mov dword [edi + 4], 8
mov dword [edi + 0xc], 4
mov eax, dword [esi - 4]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.0041bfc0
mov eax, dword [ebp - 0x2dc]
add esp, 0xc
mov dword [edi + 0x14], eax
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x2ec]
lea ecx, [ebx + 0x30]
call fcn.0040f830
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40f161
cmp dword [esi + 4], 2
jne 0x40f145
push 0x20
call fcn.00414cfb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2ec], ecx
test ecx, ecx
je 0x40f145
xorps xmm0, xmm0
movq qword [ecx], xmm0
movq qword [ecx + 8], xmm0
movq qword [ecx + 0x10], xmm0
movq qword [ecx + 0x18], xmm0
mov dword [ecx], 0x20
mov dword [ecx + 4], 0xc
mov dword [ecx + 0xc], 4
mov eax, dword [esi - 4]
lea edi, [ebx + 0x34]
push edi
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x2ec]
lea ecx, [ebx + 0x30]
call fcn.0040f830
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xorps xmm0, xmm0
movq qword [esi - 8], xmm0
movq qword [esi], xmm0
jmp 0x40f161
mov ebx, dword [ebp - 0x2f4]
mov edi, dword [ebp - 0x2d8]
add esi, 0x10
dec edi
mov dword [ebp - 0x2d8], edi
jne 0x40ea81
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret