Function at 0x1d54410
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1d5bd30
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1d89190]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 0x38], esi
cmp dword [esi + 8], eax
je 0x1d54461
push 0x1d764c0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x1d70ab8
call sub.MSVCR100.dll__CxxThrowException
xor ebx, ebx
cmp byte [esi + 6], bl
je 0x1d5447d
push 0x1d764c0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], 0x1d70a9c
call sub.MSVCR100.dll__CxxThrowException
cmp dword [ebp + 0xc], eax
jne 0x1d54497
push 0x1d764c0
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x1d70a6c
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov word [esi + 0x96], ax
mov eax, 0x12345678
mov word [esi + 0x140a8], bx
mov dword [esi + 0x140ac], eax
mov dword [esi + 0x140b0], eax
call edi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esi + 0x140b4], edx
call edi
mov edx, eax
mov eax, 0x10624dd3
mul edx
push 6
push 1
shr edx, 6
push 2
mov dword [esi + 0x140b8], edx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x1d54512
push 0x1d764c0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], str.SOCKET
call sub.MSVCR100.dll__CxxThrowException
cmp dword [esi - 0x54], ebx
jne 0x1d54562
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.mfc100.dll_Ordinal_4345
mov edx, dword [esi - 0x74]
mov edx, dword [edx + 0x5c]
push ebx
push 0xa
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40000000
lea ecx, [esi - 0x74]
push ebx
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call edx
cmp eax, ebx
jne 0x1d54562
push 0x1d764c0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x1d70a44
call sub.MSVCR100.dll__CxxThrowException
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x24], eax
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x24], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [esi + 0x10], ebx
je 0x1d545ae
push 0x1d764c0
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x1d70a30
call sub.MSVCR100.dll__CxxThrowException
mov edx, dword [esi - 0x54]
mov eax, dword [esi + 8]
push 0x31
push 0x40a
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x1d545dd
push 0x1d764c0
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 0x1d70a1c
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [esi + 8]
push 0x10
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1d5466d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1d5466d
push eax
push 0x1d709fc
push 0x40
push 0x1dae9b0
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x10
push 0x1d764c0
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x40], 0x1dae9b0
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [ebp - 0x38]
push 4
add ecx, 0xffffff8c
call fcn.01d53ae0
mov edx, dword [ebp - 0x64]
push 0x1d7d8b8
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], edx
call sub.MSVCR100.dll__CxxThrowException
mov ecx, dword [ebp - 0x38]
push 4
add ecx, 0xffffff8c
call fcn.01d53ae0
push 0x1d764c0
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 0x1d709e4
call sub.MSVCR100.dll__CxxThrowException
mov byte [esi + 6], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.01d55e87
mov esp, ebp
pop ebp
ret