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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test dl, dl
je 0x5b3e65
add esp, 0xfffffff0
call fcn.00404650
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov dword [ebx + 0x98], 0x384
mov eax, dword [0x68ec28]
mov eax, dword [eax]
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x6e], 0
mov byte [ebx + 0x24], 0
mov byte [ebx + 0x9c], 1
mov byte [ebx + 0x9d], 1
xor eax, eax
mov dword [ebx + 0xc], eax
movzx eax, byte [ebp + 0x10]
cmp eax, 0x10
ja case.0x5b3eaf.0
jmp dword [eax*4 + 0x5b3eb6]
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 6
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 0
movzx eax, byte [ebp + 0xc]
mov byte [ebx + 0x6c], al
mov dword [ebx + 0x78], 0xa
cmp dword [ebp - 8], 0x26
jne 0x5b3f3a
mov dword [ebx + 0x94], 0xa
cmp dword [ebp - 8], 0x27
jne 0x5b3f51
mov dword [ebx + 0x94], 4
mov dword [ebx + 0x78], 8
mov eax, dword [ebp - 8]
sub eax, 0x51
sub eax, 3
jns case.0x5b3eaf.0
mov byte [ebx + 0x88], 1
mov byte [ebx + 0x6c], 1
cmp dword [ebp - 8], 0x51
jne 0x5b3f95
mov eax, dword [0x68eab8]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0x54
jl 0x5b3f87
mov dword [ebx + 0x1c], 0x82
jmp 0x5b3f8e
mov dword [ebx + 0x1c], 0x8c
mov byte [ebx + 0x89], 1
cmp dword [ebp - 8], 0x52
jne 0x5b3fcc
mov eax, dword [0x68eab8]
mov eax, dword [eax]
cmp dword [eax + 0xc], 0x4e
jl 0x5b3fbe
mov eax, dword [0x68eab8]
mov eax, dword [eax]
cmp dword [eax + 0x10], 0x30
jl 0x5b3fbe
mov dword [ebx + 0x1c], 0x96
jmp 0x5b3fc5
mov dword [ebx + 0x1c], 0xa0
mov byte [ebx + 0x89], 2
cmp dword [ebp - 8], 0x53
jne 0x5b3fe0
mov dword [ebx + 0x1c], 0xb4
mov byte [ebx + 0x89], 3
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 0xa
mov dword [ebx + 0x20], 0xbe
mov dword [ebx + 0x78], 0xa
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 6
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 0
movzx eax, byte [ebp + 0xc]
mov byte [ebx + 0x6c], al
mov dword [ebx + 0x78], 1
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 0x14
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x78], 0x14
mov eax, dword [0x68e640]
mov eax, dword [eax + 0x54]
mov dword [ebx + 0x18], eax
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 0xffffffff
mov dword [ebx + 0x78], 0xa
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6c], 0
cmp dword [ebp - 8], 0x50
jne 0x5b4124
mov byte [ebx + 0x88], 2
mov eax, 6
call fcn.00403440
cmp eax, 5
ja case.default.0x5b40c0
jmp dword [eax*4 + 0x5b40c7]
mov dword [ebx + 0x1c], 0xe6
jmp case.default.0x5b40c0
mov dword [ebx + 0x1c], 0xf0
jmp case.default.0x5b40c0
mov dword [ebx + 0x1c], 0xfa
jmp case.default.0x5b40c0
mov dword [ebx + 0x1c], 0xe6
jmp case.default.0x5b40c0
mov dword [ebx + 0x1c], 0xf0
jmp case.default.0x5b40c0
mov dword [ebx + 0x1c], 0xfa
mov dword [ebx + 0x80], 4
mov dword [ebx + 0x78], 5
cmp dword [ebp - 8], 0x46
jne 0x5b4171
mov byte [ebx + 0x88], 3
mov eax, 3
call fcn.00403440
sub eax, 1
jb 0x5b4147
je 0x5b4150
dec eax
je 0x5b4159
jmp 0x5b4160
mov dword [ebx + 0x1c], 0x190
jmp 0x5b4160
mov dword [ebx + 0x1c], 0x19a
jmp 0x5b4160
mov dword [ebx + 0x1c], 0x1a4
mov dword [ebx + 0x80], 4
mov dword [ebx + 0x78], 5
cmp dword [ebp - 8], 0x47
jne 0x5b4185
mov byte [ebx + 0x88], 3
mov dword [ebx + 0x78], 0x14
cmp dword [ebp - 8], 0x48
jne 0x5b41a3
mov byte [ebx + 0x88], 3
mov dword [ebx + 0x80], 3
mov dword [ebx + 0x78], 0xa
cmp dword [ebp - 8], 0x49
jne 0x5b41c1
mov byte [ebx + 0x88], 3
mov dword [ebx + 0x80], 5
mov dword [ebx + 0x78], 0x14
cmp dword [ebp - 8], 0x4a
jne 0x5b41df
mov byte [ebx + 0x88], 3
mov dword [ebx + 0x80], 4
mov dword [ebx + 0x78], 0x23
cmp dword [ebp - 8], 0x5a
jne case.0x5b3eaf.0
mov dword [ebx + 0x1c], 0x15e
mov dword [ebx + 0x20], 0x15e
mov dword [ebx + 0x78], 0x1e
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 0xffffffff
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6c], 0
mov eax, dword [0x68e948]
mov eax, dword [eax]
mov dword [ebx + 0x18], eax
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 3
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 0
movzx eax, byte [ebp + 0xc]
mov byte [ebx + 0x6c], al
mov dword [ebx + 0x78], 3
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 1
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 0
movzx eax, byte [ebp + 0xc]
mov byte [ebx + 0x6c], al
mov dword [ebx + 0x78], 1
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 6
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 0
movzx eax, byte [ebp + 0xc]
mov byte [ebx + 0x6c], al
mov dword [ebx + 0x78], 2
jmp case.0x5b3eaf.0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x94], 1
mov eax, dword [ebx + 0x8c]
mov dword [ebx + 0x90], eax
mov byte [ebx + 0x6d], 0
movzx eax, byte [ebp + 0xc]
mov byte [ebx + 0x6c], al
mov dword [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x40], eax
cmp byte [ebx + 0x88], 1
jne 0x5b4358
cmp dword [ebp - 8], 0x51
jne 0x5b4336
sub esi, 0xe
add edi, 0x14
cmp dword [ebp - 8], 0x51
jne 0x5b4342
sub esi, 0x46
sub edi, 0xa
cmp dword [ebp - 8], 0x53
jne 0x5b434e
sub esi, 0x3c
sub edi, 0x46
mov eax, 0x2010
call fcn.005b2460
mov dword [ebx + 0xb0], esi
mov dword [ebx + 0xb4], edi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x50], edi
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x58], edi
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fstp qword [ebx + 0x5c]
wait
mov dword [ebp - 0x14], edi
fild dword [ebp - 0x14]
fstp qword [ebx + 0x64]
wait
mov eax, dword [0x68eab8]
mov eax, dword [eax]
mov eax, dword [eax + 0x150]
shl eax, 4
lea eax, [eax + eax*2]
mov edx, dword [0x68eab8]
mov edx, dword [edx]
add eax, dword [edx + 0xec]
mov dword [ebx + 0xc8], eax
mov eax, dword [0x68eab8]
mov eax, dword [eax]
mov eax, dword [eax + 0x154]
shl eax, 5
mov edx, dword [0x68eab8]
mov edx, dword [edx]
add eax, dword [edx + 0xf0]
mov dword [ebx + 0xcc], eax
cmp byte [ebx + 0x88], 0
jne 0x5b43e3
mov eax, dword [ebx + 0x1c]
add eax, 0xaa
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x80], 1
mov eax, dword [ebx + 0x3c]
cmp eax, dword [ebx + 0xb0]
je 0x5b440b
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0xb0]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0xc], eax
jmp 0x5b4412
mov dword [ebp - 0xc], 1
mov eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0xb4]
je 0x5b4430
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0xb4]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10], eax
jmp 0x5b4437
mov dword [ebp - 0x10], 1
mov eax, dword [ebx + 0xb0]
sub eax, dword [ebx + 0x3c]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 0xb4]
sub eax, dword [ebx + 0x40]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jle 0x5b44a5
fild dword [ebp - 0xc]
fdivr dword [0x5b457c]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0xb0]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fmulp st(1)
call fcn.004034fc
mov dword [ebx + 0xb8], eax
fild dword [ebp - 0xc]
fdivr dword [0x5b457c]
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0xb4]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fmulp st(1)
call fcn.004034fc
mov dword [ebx + 0xbc], eax
jmp 0x5b44ef
fild dword [ebp - 0x10]
fdivr dword [0x5b457c]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0xb0]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fmulp st(1)
call fcn.004034fc
mov dword [ebx + 0xb8], eax
fild dword [ebp - 0x10]
fdivr dword [0x5b457c]
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0xb4]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fmulp st(1)
call fcn.004034fc
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0x7c], 0x32
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0xa0], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0xa4], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0xac], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, edi
mov eax, esi
call fcn.005b83fc
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
mov byte [ebx + 0x39], al
xor eax, eax
mov dword [ebx + 0x74], eax
mov byte [ebx + 4], 1
mov dword [ebx + 0xd0], 0x1869f
mov dword [ebx + 0xd4], 0x1869f
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5b456e
call fcn.004046a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20