Function at 0x1004cb10
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1017fde0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0xa0]
mov eax, dword [esi + 4]
test eax, eax
jne 0x1004cb52
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x1004cb63
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
movzx edx, cx
mov dword [esp + 0x18], edx
mov ebp, edx
test bp, bp
mov byte [esp + 0x16], 0
jne 0x1004cb74
xor al, al
jmp 0x1004d15f
cmp byte [esp + 0xa8], 0
jne 0x1004cb87
movzx eax, bp
add dword [edi + 0x284], eax
lea ecx, [ebp*8 + 0xc]
movzx eax, cx
mov dword [esp + 0x1c], eax
movzx eax, ax
lea edx, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x2c], eax
call fcn.1000d210
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov dword [esp + 0x98], 0
je 0x1004cbcb
mov eax, dword [esp + 0x30]
sub eax, ebx
jne 0x1004cbd0
call fcn.1015828d
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [edi + 0x19c], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
push ecx
mov dword [ebx + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [esp + 0xa8], 0
mov edx, dword [edi + 0x19c]
mov word [edx], ax
mov eax, dword [edi + 0x19c]
mov byte [eax + 2], 5
mov ecx, dword [edi + 0x19c]
mov byte [ecx + 3], 0x4e
jne 0x1004cd56
push 0
push 0x1019777d
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
call fcn.10001b80
push 0
push 0x1019777d
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 1
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
call fcn.10001b80
push 0
push 0x1019777d
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 2
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.10001b80
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x58]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push 0xea60
push 0xa
mov byte [esp + 0xb4], 3
call fcn.1002aa60
add esp, 0x1c
mov ecx, eax
call fcn.10024090
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 0x19c]
mov word [edx + 4], ax
cmp dword [esp + 0x50], 0x10
jb 0x1004ccf7
mov eax, dword [esp + 0x3c]
push eax
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jb 0x1004cd20
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10157f3b
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x98], 0
jb 0x1004cd68
mov edx, dword [esp + 0x74]
push edx
call fcn.10157f3b
add esp, 4
jmp 0x1004cd68
mov eax, dword [edi + 0x19c]
mov cx, word [esp + 0xa4]
mov word [eax + 4], cx
mov edx, dword [edi + 0x7c]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [edi + 0x19c]
push ebp
mov dword [ecx + 6], eax
call dword [sym.imp.WS2_32.dll_htons]
test bp, bp
mov edx, dword [edi + 0x19c]
mov word [edx + 0xa], ax
jbe 0x1004cefd
movzx eax, bp
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004cdb1
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004cdb6
call fcn.1015828d
mov eax, dword [esi + 4]
lea ebp, [ebx*8]
mov ecx, dword [eax + ebp]
add eax, ebp
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [edi + 0x19c]
mov dword [edx + ebp + 0xc], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004cde9
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004cdee
call fcn.1015828d
mov eax, dword [esi + 4]
add eax, ebp
movzx eax, word [eax + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0x19c]
mov word [ecx + ebp + 0x10], ax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004ce1c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ce21
call fcn.1015828d
mov eax, dword [esi + 4]
movzx edx, word [eax + ebp + 6]
add eax, ebp
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp byte [esp + 0xa8], 0
mov ecx, dword [edi + 0x19c]
mov word [ecx + ebp + 0x12], ax
jne 0x1004ceb7
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
je 0x1004ce70
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ce75
call fcn.1015828d
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x1004ce8c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ce91
call fcn.1015828d
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
push 0
push 0
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + ebp + 4]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ebp]
push eax
push 5
call edx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004ceca
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004cecf
call fcn.1015828d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004cee2
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004cee7
call fcn.1015828d
add ebx, 1
sub dword [esp + 0x1c], 1
jne 0x1004cd9e
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
cmp byte [edi + 0x2a8], 1
jne 0x1004cf7c
movzx eax, bp
cmp eax, dword [edi + 0x2b0]
jl 0x1004cf7c
cmp dword [edi + 0x2bc], 2
jae 0x1004cf7c
mov ecx, dword [edi + 0x19c]
movzx edx, word [ecx + 4]
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x38], eax
xor eax, eax
mov word [esp + 0x3c], bp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x2b4]
mov byte [esp + 0x9c], 4
call fcn.1004b390
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x40]
mov dword [eax], ecx
push edx
lea ecx, [eax + 8]
mov word [eax + 4], bp
call fcn.10047df0
mov byte [esp + 0x98], 0
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
push edx
mov edx, dword [edi + 0x19c]
push edx
call eax
test al, al
je 0x1004d14e
cmp byte [esp + 0xa8], 0
jne 0x1004d149
mov ecx, dword [edi + 0x2c8]
movzx eax, bp
imul ecx, eax
mov dword [esp + 0x18], eax
shl ecx, 0xa
mov eax, 0x51eb851f
mul ecx
mov ebx, edx
mov edx, dword [edi + 0x2e0]
shr ebx, 5
push ebx
push 0
push edx
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a9db
mov eax, dword [edi + 0x2e0]
push ebx
push 2
push eax
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a9db
cmp dword [edi + 0x2e0], 0
jbe 0x1004d02a
push ebx
push 0
push 0
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a9db
push ebx
push 2
push 0
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a9db
mov ecx, dword [edi + 0x19c]
movzx eax, word [ecx + 4]
movzx eax, ax
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.100482e0
mov ebx, eax
lea edx, [esp + 0x24]
lea ecx, [edi + 0x29c]
push edx
mov byte [esp + 0x9c], 5
mov dword [esp + 0x20], ecx
call fcn.1004c720
mov edi, eax
push ebx
mov ecx, edi
call fcn.10047f20
mov al, byte [ebx + 0x10]
add ebx, 0x14
lea ecx, [edi + 0x14]
cmp ecx, ebx
mov byte [edi + 0x10], al
je 0x1004d093
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x24]
mov edx, dword [eax]
push edi
push eax
push ebx
push edx
push ebx
call fcn.10048280
lea ecx, [esp + 0x84]
mov byte [esp + 0x98], 0
call fcn.10046d10
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1004d0b8
push eax
call fcn.10157f3b
add esp, 4
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.1004c720
mov edi, eax
push esi
mov ecx, edi
call fcn.10047f20
and ebp, 0xfffe
cmp bp, 8
ja 0x1004d0ef
mov eax, dword [esp + 0x18]
shr eax, 1
cmp eax, 2
jl 0x1004d0f4
mov eax, 2
cmp eax, 1
jb 0x1004d145
lea ebp, [edi + 0x14]
mov ebx, 0xfa
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
add eax, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.10046b20
push 1
mov ecx, ebp
mov edi, eax
call fcn.10047280
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
add ebx, 0xfa
sub dword [esp + 0x1c], 1
mov dword [edx], edi
jne 0x1004d105
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x16], 1
test ebx, ebx
je 0x1004d15b
push ebx
call fcn.10157f3b
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc