Function at 0x4af030
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5ae091
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
mov eax, dword [0x5fe940]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x1ec], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004ac400
mov dword [esp + 0x1f8], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x40]
push str._F700C___d_d
push eax
call fcn.0059000d
add esp, 0x10
push ebx
push str.Microsoft_Base_Cryptographic_Provider_v1.0
lea ecx, [esp + 0x40]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.004ac430
test eax, eax
jge 0x4af0ef
push ebx
push ebx
push 0x4c8
call fcn.004ae6a0
add esp, 0xc
mov dword [esp + 0x1f8], 0xffffffff
lea ecx, [esp + 8]
call fcn.004acd80
jmp 0x4af291
push edi
lea edx, [esi + 0x76]
push edx
push 0x10
lea ecx, [esp + 0x14]
call fcn.004ac450
mov eax, dword [esi + 0x76]
mov ecx, dword [esi + 0x7a]
mov edx, dword [esi + 0x7e]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x82]
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov eax, ecx
mov dword [esi + 0x40], ecx
mov ecx, dword [esi + 0x3c]
mov edx, ecx
xor edx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x48]
mov edx, ecx
xor edx, eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x28], ecx
push eax
mov ecx, 0x60d1c8
mov dword [esp + 0x28], edx
call fcn.004144d0
test al, al
push 1
push ebx
je 0x4af165
lea ecx, [esp + 0x84]
push ecx
jmp 0x4af166
push ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4af18e
push ebx
push 1
push 0x4c8
call fcn.004ae6a0
add esp, 0xc
jmp 0x4af27c
push 4
lea edx, [esp + 0x3c]
push edx
push 0x1006
push 0xffff
push edi
mov dword [esp + 0x4c], 0x7530
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4af1db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
push 2
push 0x4c8
call fcn.004ae6a0
add esp, 0xc
jmp 0x4af27c
lea ecx, [esp + 0x10]
call fcn.004ad050
mov byte [esp + 0x1fc], 1
lea ecx, [esp + 0x14]
call fcn.004ad050
mov byte [esp + 0x1fc], 2
mov ecx, dword [esp + 0x208]
mov edx, dword [esp + 0x204]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
mov ecx, esi
call fcn.004aec10
cmp dword [esp + 0xc], ebx
je 0x4af254
push ebx
push str.Microsoft_Base_Cryptographic_Provider_v1.0
lea ecx, [esp + 0x44]
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.004ac440
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [esp + 0x1fc], 1
lea ecx, [esp + 0x14]
call fcn.004ad090
mov byte [esp + 0x1fc], bl
lea ecx, [esp + 0x10]
call fcn.004ad090
mov dword [esp + 0x1fc], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004acd80
pop edi
mov ecx, dword [esp + 0x1f0]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1e8]
xor eax, eax
pop ebx
call fcn.005900c7
add esp, 0x1f4
ret 8