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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
lea eax, [ebp - 0x20]
mov edx, dword [0x48a31c]
call fcn.00405fdc
xor eax, eax
push ebp
push 0x5a4245
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x3b8], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x3bc], eax
cmp dword [ebp - 0x20], 0x139e
jne 0x5a3a97
mov byte [ebx + 0x31], 0
xor eax, eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x38], 0
cmp byte [ebx + 0x31], 0
jne 0x5a41be
mov eax, dword [ebp - 0x20]
cmp eax, 0x139e
jg 0x5a3ac7
je 0x5a3ade
add eax, 0xffffec77
sub eax, 2
jb 0x5a3ade
dec eax
sub eax, 3
jb 0x5a3ade
dec eax
je 0x5a3ade
sub eax, 7
je 0x5a3ade
jmp 0x5a3afe
sub eax, 0x1480
je 0x5a3ade
add eax, 0xffffffd1
sub eax, 2
jb 0x5a3ade
add eax, 0xffffffc7
sub eax, 2
jae 0x5a3afe
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x2c], eax
test al, 1
je 0x5a3af7
mov byte [ebx + 0x1ec], 1
jmp 0x5a3afe
mov byte [ebx + 0x1ec], 0
mov eax, dword [0x68eab8]
cmp ebx, dword [eax]
jne 0x5a40b2
cmp dword [ebp - 0x20], 2
jne 0x5a3b2b
mov eax, dword [0x68e36c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.0052cd20
test al, al
je 0x5a4229
cmp dword [ebp - 0x20], 4
jne 0x5a3b61
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x68eab8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x68eab8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x68e36c]
mov eax, dword [eax]
call fcn.0052ca38
test al, al
je 0x5a4229
cmp dword [ebp - 0x20], 5
jne 0x5a3b97
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x68eab8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov eax, dword [0x68eab8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [0x68e36c]
mov eax, dword [eax]
call fcn.0052c8d0
test al, al
je 0x5a4229
mov eax, dword [ebp - 0x20]
cmp eax, 0x8f
ja case.0x5a3bac.0
movzx eax, byte [eax + 0x5a3bb3]
jmp dword [eax*4 + 0x5a3c43]
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138d
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138e
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138f
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1390
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14b0
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1391
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1392
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1393
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1395
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fa
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1396
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fb
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x139b
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fc
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov eax, dword [0x68e644]
cmp byte [eax], 0
je 0x5a3ea5
mov dword [ebp - 0x20], 0x14e8
jmp case.0x5a3bac.0
mov dword [ebp - 0x20], 0x14e9
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x1480
jmp case.0x5a3bac.0
cmp dword [ebx + 0x24], 0
je 0x5a3efb
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x15c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x160], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 0x164], eax
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x147b
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x138b
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14f9
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x139c
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x139d
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14a9
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14aa
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ab
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ac
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ad
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14ae
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov dword [ebp - 0x20], 0x14fd
jmp case.0x5a3bac.0
lea eax, [ebx + 0x3c8]
lea edx, [ebp - 0x20]
mov ecx, dword [0x48a31c]
call fcn.004060fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebx + 0x3d4], eax
mov dword [ebp - 0x20], 0x1394
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x3ac], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x3b0], eax
movzx eax, byte [ebx + 0x14]
mov dword [ebx + 0x3b4], eax
mov eax, dword [ebp - 0x20]
sub eax, 0x1394
je 0x5a410b
sub eax, 0xe
jne 0x5a4150
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x258], eax
movzx eax, word [ebx + 0x59]
lea eax, [eax + eax*4]
mov edx, 0xc8
sub edx, eax
mov dword [ebp - 0x24], edx
fild dword [ebp - 0x24]
call fcn.004034fc
cmp eax, 0x50
jle 0x5a40f4
mov dword [ebx + 0x38c], eax
jmp 0x5a40fe
mov dword [ebx + 0x38c], 0x50
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x24c], eax
jmp 0x5a417d
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x14], al
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5a417d
mov esi, eax
lea edi, [ebx + 0x1c4]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1c4], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 0x1d8], edx
mov edx, dword [ebp - 0x18]
mov dword [ebx + 0x1dc], edx
mov edx, 0x24
call fcn.00402f70
jmp 0x5a417d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a417d
cmp dword [ebp - 0x18], 0
je 0x5a417d
cmp eax, 0x3e8
jge 0x5a417d
cmp dword [ebp - 0x18], 0x3e8
jge 0x5a417d
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x14], al
mov eax, dword [ebp - 0x20]
cmp eax, 0x14af
je 0x5a418e
cmp eax, 0x138c
jne 0x5a419f
movzx eax, byte [ebp - 0x14]
mov byte [ebx + 0x14], al
movzx eax, word [ebp - 0x14]
shr eax, 8
mov byte [ebx + 0x30], al
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x22c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x230], eax
mov eax, ebx
mov si, 0xffff
call fcn.00404528
jmp 0x5a41dd
mov eax, dword [ebp - 0x20]
cmp eax, 0x13a4
jne 0x5a41dd
mov dword [ebx + 0x22c], eax
mov eax, ebx
mov si, 0xffff
call fcn.00404528
mov byte [ebx + 0x38], 1
mov eax, dword [ebp - 0x20]
cmp eax, 0x13a3
je 0x5a41ee
cmp eax, 0x13a5
jne 0x5a421e
mov byte [ebx + 0x31], 1
cmp dword [ebx + 0x34], 0
jne 0x5a4210
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x34], eax
cmp dword [ebp - 0x20], 0x13a3
jne 0x5a4210
sub dword [ebx + 0x34], 0x640
mov eax, dword [0x68e36c]
mov eax, dword [eax]
mov edx, ebx
call fcn.0052e430
mov eax, ebx
mov si, 0xfff5
call fcn.00404528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a424c
lea eax, [ebp - 0x20]
mov edx, dword [0x48a31c]
call fcn.00405e98
ret