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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654428
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x31], dl
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea esi, [eax*4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x48], 0
xor esi, edi
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x40]
xor edi, edi
mov edx, 2
cmp word [eax], di
je 0x4a3798
nop word [eax + eax]
inc edi
cmp word [eax + edi*2], 0
jne 0x4a3790
cmp edi, dword [ebx + 8]
jbe 0x4a37c8
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
add esp, 4
mov esi, eax
push dword [ebx]
call fcn.00545b61
mov dword [ebx], esi
add esp, 4
mov esi, dword [ebp - 0x3c]
mov dword [ebx + 8], edi
mov ecx, dword [ebp - 0x40]
lea eax, [edi*2 + 2]
push eax
push ecx
push dword [ebx]
mov dword [ebx + 4], edi
call fcn.005e0850
add esp, 0xc
cmp byte [ebp - 0x31], 0
je 0x4a3952
mov ecx, esi
mov eax, esi
and ecx, 0xf
shr eax, 4
lea edi, [ecx + 0x30]
cmp ecx, 0xa
jb 0x4a3800
lea edi, [ecx + 0x37]
mov ecx, eax
mov word [ebp - 0x30], di
and ecx, 0xf
shr eax, 4
cmp ecx, 0xa
jae 0x4a3816
add ecx, 0x30
jmp 0x4a3819
add ecx, 0x37
mov word [ebp - 0x2e], cx
mov ecx, eax
and ecx, 0xf
shr eax, 4
cmp ecx, 0xa
jae 0x4a382f
add ecx, 0x30
jmp 0x4a3832
add ecx, 0x37
mov word [ebp - 0x2c], cx
mov ecx, eax
and ecx, 0xf
shr eax, 4
cmp ecx, 0xa
jae 0x4a3848
add ecx, 0x30
jmp 0x4a384b
add ecx, 0x37
mov word [ebp - 0x2a], cx
mov ecx, eax
and ecx, 0xf
shr eax, 4
cmp ecx, 0xa
jae 0x4a3861
add ecx, 0x30
jmp 0x4a3864
add ecx, 0x37
mov word [ebp - 0x28], cx
mov ecx, eax
and ecx, 0xf
shr eax, 4
cmp ecx, 0xa
jae 0x4a387a
add ecx, 0x30
jmp 0x4a387d
add ecx, 0x37
mov word [ebp - 0x26], cx
mov ecx, eax
and ecx, 0xf
shr eax, 4
cmp ecx, 0xa
jae 0x4a3893
add ecx, 0x30
jmp 0x4a3896
add ecx, 0x37
mov word [ebp - 0x24], cx
cmp eax, 0xa
jae 0x4a38a4
add eax, 0x30
jmp 0x4a38a7
add eax, 0x37
mov word [ebp - 0x22], ax
xor eax, eax
mov word [ebp - 0x20], ax
cmp dword [ebp - 0x44], eax
je 0x4a38eb
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
jne 0x4a38d3
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
mov ecx, ebx
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov ecx, dword [ebx + 4]
mov edx, 0x2e
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebx + 4], ecx
xor esi, esi
test di, di
je 0x4a38fb
inc esi
cmp word [ebp + esi*2 - 0x30], 0
jne 0x4a38f2
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
sub eax, ecx
cmp esi, eax
jbe 0x4a391e
add ecx, esi
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
mov ecx, ebx
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea ecx, [eax + ecx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ebp - 0x30]
push eax
push ecx
call fcn.005e0850
add dword [ebx + 4], esi
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
mov ecx, 1
cmove eax, ecx
add dword [ebp - 0x3c], eax
mov edi, dword [ebp - 0x44]
mov byte [ebp - 0x31], 1
test edi, edi
je 0x4a39b0
xor esi, esi
nop
inc esi
cmp word [esi*2 + str..tmp], 0
jne 0x4a3960
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
sub eax, ecx
cmp esi, eax
jbe 0x4a398f
add ecx, esi
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
mov ecx, ebx
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea ecx, [eax + ecx*2]
lea eax, [esi*2 + 2]
push eax
push str..tmp
push ecx
call fcn.005e0850
add esp, 0xc
add dword [ebx + 4], esi
mov esi, dword [ebx]
lea ecx, [ebp - 0x80]
call fcn.00415d50
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0
call fcn.004a4300
mov dword [ebp - 4], 0xffffffff
mov bl, al
push dword [ebp - 0x58]
call fcn.00545b61
add esp, 4
test bl, bl
je 0x4a39f2
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x38]
jmp 0x4a3a2f
mov esi, dword [ebp - 0x38]
test edi, edi
je 0x4a3a12
push 0x80
push 1
push 1
push 0x40000000
push dword [esi]
mov ecx, edi
call fcn.004a4c90
jmp 0x4a3a19
mov ecx, dword [esi]
call fcn.004a2ca0
test al, al
jne 0x4a3a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4a3a2f
cmp eax, 0xb7
jne 0x4a3a46
mov ecx, dword [ebp - 0x48]
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 0x64
jae 0x4a3a46
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
jmp 0x4a377b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], 0
mov word [eax], cx
xor al, al
jmp 0x4a3a5a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret