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

Disassembly:
push 0xffffffffffffffff
push 0x1009e70d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b8070]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
call fcn.10001f80
mov dword [esi + 4], eax
mov ebx, 1
mov byte [eax + 0x15], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor ebp, ebp
mov dword [eax + 8], eax
mov dword [esi + 8], ebp
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x28], ebp
call fcn.10005700
lea ecx, [esi + 0x630]
push ecx
mov byte [esp + 0x28], bl
call fcn.10020ae0
mov byte [esp + 0x24], 2
call fcn.1001daa0
mov dword [esi + 0x59764], eax
mov dword [esi + 0x59768], ebp
mov byte [esp + 0x24], 3
call fcn.1001daa0
mov dword [esi + 0x59770], eax
mov dword [esi + 0x59774], ebp
mov byte [esp + 0x24], 4
call fcn.1001dac0
mov dword [esi + 0x5977c], eax
mov dword [esi + 0x59780], ebp
mov byte [esp + 0x24], 5
call fcn.1001dac0
mov dword [esi + 0x59788], eax
mov dword [esi + 0x5978c], ebp
mov byte [esp + 0x24], 6
call fcn.1001daa0
mov dword [esi + 0x59794], eax
mov dword [esi + 0x59798], ebp
mov byte [esp + 0x24], 7
call fcn.1001daa0
mov dword [esi + 0x597a0], eax
mov dword [esi + 0x597a4], ebp
mov byte [esp + 0x24], 8
call fcn.1001dae0
mov dword [esi + 0x597ac], eax
mov dword [esi + 0x597b0], ebp
mov byte [esp + 0x24], 9
call fcn.10014030
mov dword [esi + 0x597bc], eax
mov dword [esi + 0x597c0], ebp
mov byte [esp + 0x24], 0xa
lea edi, [esi + 0x597d0]
call fcn.10001f80
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
mov byte [esp + 0x24], 0xb
call fcn.1001dae0
mov dword [esi + 0x597e0], eax
mov dword [esi + 0x597e4], ebp
mov byte [esp + 0x24], 0xc
call fcn.1001dae0
mov dword [esi + 0x597f0], eax
mov dword [esi + 0x597f4], ebp
mov byte [esp + 0x24], 0xd
call fcn.1001dae0
mov dword [esi + 0x597fc], eax
mov dword [esi + 0x59800], ebp
mov byte [esp + 0x24], 0xe
mov edx, dword [0x100ba1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x100ba1ec
call eax
add eax, 0x10
mov dword [esi + 0x5982c], eax
mov byte [esp + 0x24], 0xf
mov edx, dword [0x100ba1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x100ba1ec
call eax
add eax, 0x10
mov dword [esi + 0x59830], eax
lea ecx, [esi + 0x59834]
push ecx
mov byte [esp + 0x28], 0x10
call fcn.10020ae0
mov byte [esp + 0x24], 0x11
mov edx, dword [0x100ba1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x100ba1ec
call eax
add eax, 0x10
mov dword [esi + 0xb2958], eax
mov byte [esp + 0x24], 0x12
call fcn.1001dae0
mov dword [esi + 0xb2960], eax
mov dword [esi + 0xb2964], ebp
mov byte [esp + 0x24], 0x13
call fcn.1001dae0
mov dword [esi + 0xb296c], eax
mov dword [esi + 0xb2970], ebp
mov byte [esp + 0x24], 0x14
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0x14]
mov eax, edi
mov dword [esi + 0x59754], ebp
mov dword [esi + 0x597c4], 4
mov dword [esi + 0x597cc], 0x46
call fcn.1001d970
mov ecx, 1
mov dword [eax], ecx
mov eax, 0x100baf00
mov dword [esi + 0x5980c], ecx
mov dword [esi + 0x59824], ecx
mov dword [esi + 0x59810], ebp
mov dword [esi + 0x5975c], ebp
mov dword [esi + 0x59828], ebp
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x10016a80
sub eax, ecx
sar eax, 1
mov ebx, eax
lea edi, [esi + 0x5982c]
push 0x100baf00
mov eax, edi
call fcn.10002ce0
mov eax, dword [edi]
push 0x5c
push eax
call fcn.1008185f
add esp, 8
cmp eax, ebp
jne 0x10016ab9
or eax, 0xffffffff
jmp 0x10016abd
sub eax, dword [edi]
sar eax, 1
add eax, 1
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.100135f0
mov byte [esp + 0x24], 0x15
call fcn.10003000
mov byte [esp + 0x24], 0x14
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10016afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esi + 0x59804], eax
call edi
mov dword [esi + 0x59808], eax
mov dword [esi + 0xb2974], ebp
mov dword [esi + 0xb2978], ebp
call edi
mov dword [0x100baef8], eax
mov dword [esi + 0x59818], ebp
mov dword [esi + 0x5981c], ebp
mov dword [esi + 0x628], ebp
mov dword [esi + 0x62c], ebp
mov dword [esi + 0xb297c], ebp
mov dword [esi + 0xb2980], ebp
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4