Function at 0x10016700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x100180f1
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1001e388]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001e388]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
push 0x100202e8
mov ebx, ecx
mov dword [esp + 0x24], vtable.nfapi::AutoLock.0
mov dword [esp + 0x28], 0x100202e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x58], 0
cmp dword [0x100201d8], 0
je case.0x10016776.6
mov eax, dword [ebx]
cmp eax, 0x1d
ja case.0x10016776.6
movzx eax, byte [eax + 0x10016fb0]
jmp dword [eax*4 + 0x10016f64]
mov ebp, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov esi, dword [0x100201cc]
push ebp
push edi
call fcn.10017b80
add esp, 8
test eax, eax
je 0x100167ac
add eax, 0xfffffff8
lea esi, [ebx + 0x10]
lea edi, [eax + 0x60]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x100167c2
lea ecx, [ebx + 0x10]
push ecx
push ebp
push edi
call fcn.10013b90
add esp, 0xc
test eax, eax
je case.0x10016776.6
or dword [eax + 0xab], 0x10
mov edx, dword [ebx + 8]
add eax, 0x6b
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call fcn.10014550
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 1
call fcn.10002c10
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x10016f34
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 0x10]
push edx
push eax
push ecx
call fcn.10013b90
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 2
call fcn.10002c10
jmp 0x10016f2f
cmp dword [ebx + 0xc], 0x10
jne 0x10016864
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov esi, dword [0x100201cc]
push eax
push ecx
call fcn.10017b80
add esp, 8
test eax, eax
je 0x10016864
mov edx, dword [ebx + 0x10]
add eax, 0x44
mov dword [eax], edx
mov ecx, dword [ebx + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0x18]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x1c]
mov dword [eax + 0xc], ecx
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 3
call fcn.10002c10
jmp 0x10016f2f
mov ebp, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov esi, dword [0x100201cc]
push ebp
push edi
call fcn.10017b80
add esp, 8
test eax, eax
je 0x100169da
lea esi, [eax - 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x5c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
lea ebp, [esi + 0x14]
jbe 0x100168e8
cmp dword [ebp], ebp
je 0x100168e8
mov edi, dword [ebp + 4]
mov ecx, dword [edi + 0x14]
lea edx, [ecx + eax]
cmp edx, 0x2000
ja 0x100168e8
push eax
lea eax, [ebx + 0x10]
push eax
lea ecx, [ecx + edi + 0x18]
push ecx
call fcn.1000add0
mov edx, dword [ebx + 0xc]
add dword [edi + 0x14], edx
mov eax, dword [ebx + 0xc]
add esp, 0xc
add dword [esi + 0x1c], eax
jmp 0x10016942
xor ecx, ecx
mov eax, 0x2018
call fcn.10017a00
mov edi, eax
test edi, edi
je case.0x10016776.6
mov ecx, dword [ebx + 4]
mov dword [edi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [edi + 0x10], edx
mov eax, dword [ebx]
mov dword [edi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0x14], ecx
cmp dword [ebx + 0xc], 0
jbe 0x1001692f
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebx + 0x10]
push eax
lea ecx, [edi + 0x18]
push ecx
call fcn.1000add0
add esp, 0xc
mov edx, dword [ebx + 0xc]
add dword [esi + 0x1c], edx
mov eax, dword [ebp + 4]
mov dword [edi], ebp
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ebp + 4], edi
mov eax, 0x800000
cmp dword [esi + 0x40], eax
jae 0x1001695b
cmp dword [esi + 0x34], eax
jae 0x1001695b
cmp dword [esi + 0x28], eax
jae 0x1001695b
cmp dword [esi + 0x1c], eax
jb 0x10016966
push 1
push esi
call fcn.10015760
add esp, 8
cmp byte [0x1001f164], 0
je 0x100169c0
cmp dword [ebx + 0xc], 0x578
jb 0x10016993
cmp dword [esi + 0x1c], 0x10000
jae 0x10016993
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
call fcn.100012c0
jmp case.0x10016776.6
lea esi, [esp + 0x18]
call fcn.100010f0
mov byte [esp + 0x58], 4
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push edx
push eax
mov edx, 0x1e
call fcn.100158e0
mov ecx, dword [esp + 0x24]
add esp, 8
push ecx
jmp 0x10016f34
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 5
call fcn.10002c10
jmp 0x10016f2f
mov eax, dword [ebx + 0xc]
push eax
add ebx, 0x10
push ebx
push ebp
push edi
call sym.nfapi.dll_nf_tcpPostReceive
add esp, 0x10
jmp case.0x10016776.6
mov ebp, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov esi, dword [0x100201cc]
push ebp
push edi
call fcn.10017b80
add esp, 8
test eax, eax
je 0x10016afc
lea esi, [eax - 8]
lea ebp, [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x5c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jbe 0x10016a5b
cmp dword [ebp], ebp
je 0x10016a5b
mov edi, dword [ebp + 4]
mov ecx, dword [edi + 0x14]
lea edx, [ecx + eax]
cmp edx, 0x2000
ja 0x10016a5b
push eax
lea eax, [ebx + 0x10]
push eax
lea ecx, [ecx + edi + 0x18]
push ecx
call fcn.1000add0
mov edx, dword [ebx + 0xc]
add dword [edi + 0x14], edx
mov eax, dword [ebx + 0xc]
add esp, 0xc
add dword [esi + 0x28], eax
jmp 0x10016ab5
xor ecx, ecx
mov eax, 0x2018
call fcn.10017a00
mov edi, eax
test edi, edi
je case.0x10016776.6
mov ecx, dword [ebx + 4]
mov dword [edi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [edi + 0x10], edx
mov eax, dword [ebx]
mov dword [edi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [edi + 0x14], ecx
cmp dword [ebx + 0xc], 0
jbe 0x10016aa2
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebx + 0x10]
push eax
lea ecx, [edi + 0x18]
push ecx
call fcn.1000add0
add esp, 0xc
mov edx, dword [ebx + 0xc]
add dword [esi + 0x28], edx
mov eax, dword [ebp + 4]
mov dword [edi], ebp
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ebp + 4], edi
mov eax, 0x800000
cmp dword [esi + 0x40], eax
jae 0x10016ad2
cmp dword [esi + 0x34], eax
jae 0x10016ad2
cmp dword [esi + 0x28], 0x40000
jae 0x10016ad2
cmp dword [esi + 0x1c], eax
jb 0x10016add
push 1
push esi
call fcn.10015760
add esp, 8
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 6
call fcn.10002c10
mov eax, dword [esp + 0x1c]
push eax
jmp 0x10016f34
mov ecx, dword [ebx + 0xc]
push ecx
add ebx, 0x10
push ebx
push ebp
push edi
call sym.nfapi.dll_nf_tcpPostSend
add esp, 0x10
jmp case.0x10016776.6
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 7
call fcn.100036a0
jmp 0x10016f2f
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 8
call fcn.100036a0
mov eax, dword [esp + 0x1c]
push eax
jmp 0x10016f34
lea esi, [esp + 0x18]
call fcn.100010f0
mov byte [esp + 0x58], 9
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov edx, 0x19
call fcn.10015880
mov eax, dword [esp + 0x24]
add esp, 8
push eax
jmp 0x10016f34
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov esi, dword [0x100201cc]
push ecx
push edx
call fcn.10017b80
add esp, 8
test eax, eax
je case.0x10016776.6
or dword [eax + 0xa3], 0x40
jmp case.0x10016776.6
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [ebx + 0x10]
push eax
push ecx
push edx
call fcn.100139c0
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0xa
call fcn.10002c10
mov eax, dword [esp + 0x1c]
push eax
jmp 0x10016f34
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov esi, dword [0x100201d4]
push ecx
push edx
call fcn.10017b80
add esp, 8
test eax, eax
je 0x10016bff
lea esi, [ebx + 0x10]
lea edi, [eax + 0x6e]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0xb
call fcn.10002c10
mov eax, dword [esp + 0x1c]
push eax
jmp 0x10016f34
cmp dword [ebx + 0xc], 0x10
jne 0x10016c58
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov esi, dword [0x100201d4]
push ecx
push edx
call fcn.10017b80
add esp, 8
test eax, eax
je 0x10016c58
mov ecx, dword [ebx + 0x10]
add eax, 0x3c
mov dword [eax], ecx
mov edx, dword [ebx + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0xc], edx
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0xc
call fcn.10002c10
mov eax, dword [esp + 0x1c]
push eax
jmp 0x10016f34
mov edi, dword [ebx + 8]
mov ebp, dword [ebx + 4]
mov esi, dword [0x100201d4]
push edi
push ebp
call fcn.10017b80
add esp, 8
test eax, eax
jne 0x10016cd9
mov cx, word [ebx + 0x10]
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x34], eax
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x54], ax
mov word [esp + 0x38], cx
call fcn.100139c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10016cdc
jmp case.0x10016776.6
lea edi, [eax - 8]
xor ecx, ecx
mov eax, 0x20018
lea ebp, [edi + 0x14]
call fcn.10017a00
mov esi, eax
test esi, esi
je case.0x10016776.6
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 0x10], ecx
mov edx, dword [ebx]
mov dword [esi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x14], eax
cmp dword [ebx + 0xc], 0
jbe 0x10016d26
mov ecx, dword [ebx + 0xc]
push ecx
lea eax, [ebx + 0x10]
push eax
lea edx, [esi + 0x18]
push edx
call fcn.1000add0
add esp, 0xc
mov eax, dword [ebx + 0xc]
add dword [edi + 0x1c], eax
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov dword [esi], ebp
mov dword [eax], esi
mov eax, 0x800000
mov dword [ebp + 4], esi
cmp dword [edi + 0x40], eax
jae 0x10016d52
cmp dword [edi + 0x34], eax
jae 0x10016d52
cmp dword [edi + 0x28], eax
jae 0x10016d52
cmp dword [edi + 0x1c], eax
jb 0x10016d5d
push 1
push edi
call fcn.10015640
add esp, 8
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0xd
call fcn.10002c10
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x10016f34
mov edi, dword [ebx + 8]
mov ebp, dword [ebx + 4]
mov esi, dword [0x100201d4]
push edi
push ebp
call fcn.10017b80
add esp, 8
test eax, eax
jne 0x10016dde
mov dx, word [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x28]
push eax
push edi
push ebp
mov word [esp + 0x38], dx
call fcn.100139c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10016de1
jmp case.0x10016776.6
lea edi, [eax - 8]
xor ecx, ecx
mov eax, 0x20018
lea ebp, [edi + 0x20]
call fcn.10017a00
mov esi, eax
test esi, esi
je case.0x10016776.6
mov ecx, dword [ebx + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 0x10], edx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [ebx + 0xc], 0
jbe 0x10016e2b
mov edx, dword [ebx + 0xc]
push edx
lea eax, [ebx + 0x10]
push eax
lea eax, [esi + 0x18]
push eax
call fcn.1000add0
add esp, 0xc
mov ecx, dword [ebx + 0xc]
add dword [edi + 0x28], ecx
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov dword [esi], ebp
mov dword [eax], esi
mov eax, 0x800000
mov dword [ebp + 4], esi
cmp dword [edi + 0x40], eax
jae 0x10016e57
cmp dword [edi + 0x34], eax
jae 0x10016e57
cmp dword [edi + 0x28], eax
jae 0x10016e57
cmp dword [edi + 0x1c], eax
jb 0x10016e62
push 1
push edi
call fcn.10015640
add esp, 8
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0xe
call fcn.10002c10
jmp 0x10016f2f
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0xf
call fcn.100036a0
mov eax, dword [esp + 0x1c]
push eax
jmp 0x10016f34
lea esi, [esp + 0x18]
call fcn.100010f0
mov ecx, ebx
mov byte [esp + 0x58], 0x10
call fcn.100036a0
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x10016f34
lea edi, [ebx + 0x10]
lea ebp, [ebx + 0x26]
mov ebx, dword [ebx + 0xc]
lea esi, [esp + 0x18]
sub ebx, 0x16
call fcn.100010f0
push edi
mov byte [esp + 0x5c], 0x11
mov eax, dword [0x100202e4]
test eax, eax
push ebx
push ebp
je 0x10016eeb
mov edx, dword [eax]
call edx
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
jmp 0x10016f34
call sym.nfapi.dll_nf_ipPostReceive
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
jmp 0x10016f34
lea edi, [ebx + 0x10]
lea ebp, [ebx + 0x26]
mov ebx, dword [ebx + 0xc]
lea esi, [esp + 0x18]
sub ebx, 0x16
call fcn.100010f0
push edi
mov byte [esp + 0x5c], 0x12
mov eax, dword [0x100202e4]
test eax, eax
push ebx
push ebp
je 0x10016f27
mov ecx, dword [eax + 4]
call ecx
jmp 0x10016f2c
call sym.nfapi.dll_nf_ipPostSend
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x100202e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10007bc1
add esp, 0x48
ret