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

Disassembly:
push 0xffffffffffffffff
push 0x10182270
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
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 0x1004a802
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x1004a813
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 0x1004a824
xor al, al
jmp 0x1004ae0f
cmp byte [esp + 0xa8], 0
jne 0x1004a837
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.1000b0a0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov dword [esp + 0x98], 0
je 0x1004a87b
mov eax, dword [esp + 0x30]
sub eax, ebx
jne 0x1004a880
call fcn.1015988d
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 0x1004aa06
push 0
push 0x101997b5
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
call fcn.10005610
push 0
push 0x101997b5
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.10005610
push 0
push 0x101997b5
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.10005610
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.10028700
add esp, 0x1c
mov ecx, eax
call fcn.100220b0
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 0x1004a9a7
mov eax, dword [esp + 0x3c]
push eax
call fcn.10159534
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jb 0x1004a9d0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10159534
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 0x1004aa18
mov edx, dword [esp + 0x74]
push edx
call fcn.10159534
add esp, 4
jmp 0x1004aa18
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 0x1004abad
movzx eax, bp
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004aa61
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004aa66
call fcn.1015988d
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 0x1004aa99
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004aa9e
call fcn.1015988d
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 0x1004aacc
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004aad1
call fcn.1015988d
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 0x1004ab67
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 0x1004ab20
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ab25
call fcn.1015988d
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x1004ab3c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ab41
call fcn.1015988d
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 0x1004ab7a
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ab7f
call fcn.1015988d
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004ab92
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ab97
call fcn.1015988d
add ebx, 1
sub dword [esp + 0x1c], 1
jne 0x1004aa4e
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
cmp byte [edi + 0x2a8], 1
jne 0x1004ac2c
movzx eax, bp
cmp eax, dword [edi + 0x2b0]
jl 0x1004ac2c
cmp dword [edi + 0x2bc], 2
jae 0x1004ac2c
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.100494b0
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.10045fd0
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 0x1004adfe
cmp byte [esp + 0xa8], 0
jne 0x1004adf9
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.1010c850
add esp, 8
mov ecx, eax
call fcn.1010be65
mov eax, dword [edi + 0x2e0]
push ebx
push 2
push eax
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010be65
cmp dword [edi + 0x2e0], 0
jbe 0x1004acda
push ebx
push 0
push 0
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010be65
push ebx
push 2
push 0
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010be65
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.100463c0
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.1004a6a0
mov edi, eax
push ebx
mov ecx, edi
call fcn.10046100
mov al, byte [ebx + 0x10]
add ebx, 0x14
lea ecx, [edi + 0x14]
cmp ecx, ebx
mov byte [edi + 0x10], al
je 0x1004ad43
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.10046360
lea ecx, [esp + 0x84]
mov byte [esp + 0x98], 0
call fcn.10044d60
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1004ad68
push eax
call fcn.10159534
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.1004a6a0
mov edi, eax
push esi
mov ecx, edi
call fcn.10046100
and ebp, 0xfffe
cmp bp, 8
ja 0x1004ad9f
mov eax, dword [esp + 0x18]
shr eax, 1
cmp eax, 2
jl 0x1004ada4
mov eax, 2
cmp eax, 1
jb 0x1004adf5
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.10044ae0
push 1
mov ecx, ebp
mov edi, eax
call fcn.10045320
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
add ebx, 0xfa
sub dword [esp + 0x1c], 1
mov dword [edx], edi
jne 0x1004adb5
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x16], 1
test ebx, ebx
je 0x1004ae0b
push ebx
call fcn.10159534
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