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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x101fa3a0]
push ebx
push esi
mov esi, ecx
push edi
cmp eax, 1
jne 0x10040855
mov word [ebp - 4], 0x3c1
mov byte [ebp - 2], 0xff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x1004087e
cmp eax, 3
jne 0x1004089a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x101fa3a8]
add ecx, 0x3e8
cmp eax, ecx
jb 0x1004089a
mov word [ebp - 4], 0x3c1
mov byte [ebp - 2], 0xff
call edi
mov edx, 3
mov dword [0x101fa3a8], eax
lea ecx, [ebp - 4]
call fcn.1005d410
mov dword [0x101fa3a0], 2
push 0xd
mov edi, 0x861110
call edi
mov ebx, 0x85ec20
mov ecx, eax
call ebx
test al, al
jne 0x10040c17
push 0x41
call edi
mov ecx, eax
call ebx
test al, al
jne 0x10040c17
push 9
call edi
mov ecx, eax
call ebx
test al, al
jne 0x10040c17
push 0x10
call edi
mov ecx, eax
call ebx
test al, al
jne 0x10040c17
push 0xa
call edi
mov ecx, eax
call ebx
test al, al
jne 0x10040c17
push 0x4d
call edi
mov ecx, eax
call ebx
test al, al
jne 0x10040c17
push 0x4e
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x48
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x4a
call fcn.10039dd0
test al, al
jne 0x10040c17
push 6
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x49
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x4b
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x3f
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xf
call fcn.10039dd0
test al, al
jne 0x10040c17
push 3
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xb
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xc
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x39
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xe
call fcn.10039dd0
test al, al
jne 0x10040c17
push 7
call fcn.10039dd0
test al, al
jne 0x10040c17
push 1
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x4f
call fcn.10039dd0
test al, al
jne 0x10040c17
push 4
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x42
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x46
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x3a
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x3b
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x3c
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x3d
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x3e
call fcn.10039dd0
test al, al
jne 0x10040c17
push 5
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x16
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x17
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x18
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x19
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x1a
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x15
call fcn.10039dd0
test al, al
jne 0x10040c17
push 8
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xd
call fcn.10039dd0
test al, al
je 0x10040b09
push 0x4d
call fcn.10039dd0
test al, al
je 0x10040b09
push 0xe
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xd
call fcn.10039dd0
test al, al
je 0x10040b2e
push 8
call fcn.10039dd0
test al, al
je 0x10040b2e
push 0x4e
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0xd
call fcn.10039dd0
test al, al
je 0x10040b53
push 0x10
call fcn.10039dd0
test al, al
je 0x10040b53
push 0xe
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x14
call fcn.10039dd0
test al, al
jne 0x10040c17
push 0x13
call fcn.10039dd0
test al, al
jne 0x10040c17
mov eax, dword [0x101fa3a4]
cdq
sub eax, edx
sar eax, 1
push eax
push str.PING:__d_ms
push 0x101fa3b4
call fcn.10021e00
add esp, 0xc
mov dword [0x101fa3b0], 0
cmp dword [0x101fa3a4], 0
jle 0x10040be9
push 0x101fa3b4
push 1
push 0x64
push 2
push 0x22b
push 0xff19bdff
push esi
call fcn.10039d00
push 0x101fa3b4
push 0x101fa3dc
call fcn.10021e00
mov eax, dword [0x101fa3a4]
add esp, 0x24
mov dword [0x101fa3fc], eax
mov dword [0x101fa3b0], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x101fa3fc], 0
jle 0x10040bf9
push 0x101fa3dc
jmp 0x10040bfe
push 0x101fa3b4
push 1
push 0x64
push 2
push 0x22b
push 0xff19bdff
push esi
call fcn.10039d00
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret