Function at 0x438100
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x18c
mov eax, dword [0x5e4a44]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x198]
push ebp
mov ebp, dword [esp + 0x198]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x438345
test edi, edi
jl 0x438345
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4382fc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
lea eax, [esp + 0x138]
push str._d._d._d._d_n
push eax
call fcn.00554125
lea eax, [esp + 0x140]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438184
sub eax, edx
push eax
lea ecx, [esp + 0x12c]
push ecx
mov ecx, esi
call fcn.00403ae0
push 0
push 1
push 2
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], edi
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
jne 0x438211
test ebx, ebx
je 0x43839e
push 0xff
lea edx, [esp + 0x2d]
push 0
push edx
mov byte [esp + 0x34], 0
call fcn.00557650
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x2c]
push 0x5bc080
push eax
call fcn.00554125
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.00419820
jmp 0x43839e
xor eax, eax
cmp dword [esi + 0x18], 0x10
mov edx, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], dx
lea edi, [esi + 4]
jb 0x43823a
mov eax, dword [edi]
jmp 0x43823c
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x1c], eax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [esp + 0x1a], ax
call ebx
mov edx, dword [esi + 0x28]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x438292
mov byte [esi + 0x24], 1
call ebx
sub eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
call fcn.004383c0
mov al, 1
jmp 0x4383a0
cmp dword [esp + 0x10], 0
je 0x4382e3
push 0xff
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call fcn.00557650
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4382ba
mov edi, dword [edi]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x34]
push str.socketl
push ecx
call fcn.00554125
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x28]
push edx
call fcn.00419820
mov byte [esi + 0x24], 0
call ebx
sub eax, dword [esp + 0x14]
mov dword [esi + 0x20], eax
call fcn.004383c0
mov al, 1
jmp 0x4383a0
test ebx, ebx
je 0x43839e
push 0xff
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call fcn.00557650
add esp, 0xc
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x30]
push 0x5bc06c
push ecx
call fcn.00554125
add esp, 0x10
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.00419820
jmp 0x43839e
test ebx, ebx
je 0x43839e
push 0xff
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call fcn.00557650
add esp, 0xc
mov eax, str.null
test ebp, ebp
je 0x43836d
mov eax, ebp
push edi
push eax
lea ecx, [esp + 0x30]
push 0x5bc048
push ecx
call fcn.00554125
lea eax, [esp + 0x38]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438388
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.00403ae0
xor al, al
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005509f8
add esp, 0x18c
ret 8