Function at 0x100bb800
Capabilities:
Check for time delay via gettickcount
Print debug messages
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10186c08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x101ebb68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x20]
xor edi, edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], 0x2000
call fcn.100279f0
test eax, eax
je 0x100bba6d
push 0x2000
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
cmp esi, edi
jne 0x100bb885
mov eax, dword [ebx + 0x30]
lea eax, [eax - 0x10]
call fcn.10003d80
lea edx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x24]
lea eax, [ebp - 0x18]
push eax
push 0x4004667f
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x100bb8c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x100bb8de
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
cmp eax, 0x4e20
jae 0x100bba5f
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100bb891
mov eax, dword [ebx]
test eax, eax
jne 0x100bb909
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x14]
jle 0x100bb949
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100bba6d
mov esi, eax
jmp 0x100bb949
add eax, 0x38
cmp dword [ebp - 0x14], eax
jge 0x100bb92f
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100bba6d
mov ecx, dword [ebp - 0x18]
mov esi, eax
mov eax, dword [ebx]
add ecx, edi
lea edx, [eax + 0x38]
cmp ecx, edx
jl 0x100bb949
sub eax, edi
add eax, 0x38
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + 0x20]
lea edx, [edi + esi]
push eax
call fcn.10027920
test eax, eax
jle 0x100bb96f
add edi, eax
mov dword [ebp - 0x1c], edi
push eax
mov edi, ebx
call fcn.100bbbd0
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x100bb891
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
lea edi, [ebp - 0x18]
push eax
push 0x101b0990
call fcn.10027dc0
mov eax, dword [ebp - 0x18]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 8]
imul eax, dword [ebx + 4]
cdq
and edx, 7
add eax, edx
sub esp, 0x34
sar eax, 3
mov edi, esp
add esi, 4
mov ecx, 0xd
mov dword [ebp - 0x20], eax
rep movsd dword es:[edi], dword [esi]
call fcn.100bbac0
xor ecx, ecx
cmp eax, 1
sete cl
mov esi, 0x22009
mov eax, ecx
test eax, eax
je 0x100bb9f8
mov esi, 0x26200a
cmp dword [ebx + 4], 0x10
jne 0x100bba03
mov esi, 0x21006
mov edi, dword [ebp - 0x10]
push ebx
mov eax, edi
call fcn.100bbb50
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x20]
add edi, 0x38
push edi
push esi
push edx
push eax
push ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebp - 0x24]
push 0
lea edx, [ebx + 0x10]
push edx
push ecx
push eax
mov esi, eax
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push esi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10004310
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100bba6d
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, dword [ebx + 0x30]
lea eax, [eax - 0x10]
call fcn.10003d80
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4