Function at 0x4022f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket
Send http request

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4280f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x81
lea eax, [ebp - 0x90]
push 0
push eax
mov dword [ebp - 0xac], 0
call fcn.0040b2e0
add esp, 0xc
mov byte [ebp - 0xa1], 0
push str.Mutex_object_for_X400100002W.exe
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
movzx eax, byte [ebp - 0xa1]
mov ecx, 1
test esi, esi
cmovne eax, ecx
push esi
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xa8], 0
jne 0x4023a3
push 0x421fcc
call fcn.0040a680
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004056f0
test eax, eax
jg 0x4023ce
push 0x421fe0
call fcn.0040a680
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
push eax
movdqa xmmword [ebp - 0xa0], xmm0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x9e], ax
mov eax, 2
push str.127.0.0.1
mov word [ebp - 0xa0], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x9c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xa8], eax
xor esi, esi
mov edi, edi
push 0x10
lea ecx, [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40244e
push 0x3e8
call edi
mov eax, dword [ebp - 0xa8]
inc esi
cmp esi, 0xa
jl 0x402420
mov esi, eax
jmp 0x402531
cmp byte [0x428008], 0
mov eax, dword [str.DoLOCK]
mov dword [ebp - 0x90], eax
mov ax, word [0x422014]
mov word [ebp - 0x8c], ax
mov al, byte [0x422016]
mov dword [ebp - 0xac], 1
mov byte [ebp - 0x8a], al
je 0x4024ab
lea ecx, [ebp - 0x90]
dec ecx
jmp 0x402490
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402490
mov eax, dword [str.HTTPS]
mov dword [ecx], eax
mov ax, word [0x42201c]
mov word [ecx + 4], ax
lea ecx, [ebp - 0x90]
dec ecx
cmp byte [0x42c3e1], 0
je 0x4024e0
jmp 0x4024c0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4024c0
mov ax, word [0x422020]
mov word [ecx], ax
mov al, byte [0x422022]
jmp 0x4024f8
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4024e0
mov ax, word [0x422024]
mov word [ecx], ax
mov al, byte [0x422026]
mov byte [ecx + 2], al
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402504
mov esi, dword [ebp - 0xa8]
push 0
sub ecx, edx
push ecx
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0x422028
call fcn.0040a680
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0xac], 0
jne 0x402563
push str.X400100002W
call fcn.0040a680
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040b2c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret