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

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xfffffffffffffffe
push 0x101aa3d8
push 0x1010ea10
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
push ebx
push esi
push edi
mov eax, dword [0x101c52b4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov esi, dword [ebp + 0x34]
mov ebx, edx
mov dl, dl
xor eax, eax
mov dword [ebp + 0x24], eax
push edx
pop edx
mov dword [ebp + 0x28], eax
mov dh, dh
call fcn.100ce090
push edx
pop edx
call fcn.100ce220
nop
test edi, edi
jne 0x100d14d8
mov eax, eax
jmp 0x100d1ce3
mov eax, dword [ebx]
lea ecx, [ebp + 0x24]
push ecx
push 0x10179c10
push ebx
mov edx, dword [eax]
call edx
mov al, al
mov eax, dword [edi]
lea ecx, [ebp + 0x28]
push ecx
push 0x10179c10
push edi
mov edx, dword [eax]
call edx
mov ah, ah
cmp dword [ebp + 0x28], 0
je 0x100d1ce1
cmp dword [ebp + 0x24], 0
je 0x100d1ce1
mov ebx, ebx
mov edi, 0x7c
push edi
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.1010efd0
add esp, 0xc
mov dh, dh
push edi
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.1010efd0
add esp, 0xc
push ebx
pop ebx
mov dword [ebp - 0x110], edi
mov ch, ch
mov dword [ebp - 0x94], edi
mov dl, dl
mov eax, dword [ebp + 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x110]
push ecx
push eax
mov edx, dword [edx + 0x58]
call edx
mov edi, edi
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x94]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov edx, edx
test dword [ebp - 0xa8], 0x200
je 0x100d1ce3
test esi, esi
jne 0x100d1593
mov ebx, dword [ebp - 0x104]
jmp 0x100d1598
mov ebx, dword [esi + 8]
sub ebx, dword [esi]
mov dword [ebp - 0x1c4], ebx
push ecx
pop ecx
test esi, esi
jne 0x100d15ac
mov edi, dword [ebp - 0x108]
jmp 0x100d15b2
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
mov dword [ebp - 0x1bc], edi
mov cl, cl
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x100d15c9
mov ecx, dword [ebp - 0x88]
jmp 0x100d15ce
mov ecx, dword [edx + 8]
sub ecx, dword [edx]
mov dword [ebp - 0x1c0], ecx
push edx
pop edx
test edx, edx
jne 0x100d15e2
mov eax, dword [ebp - 0x8c]
jmp 0x100d15e8
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x1c8], eax
push edx
pop edx
cmp ebx, ecx
je 0x100d15fb
mov dl, dl
jmp 0x100d1ce3
cmp edi, eax
je 0x100d1606
mov edi, edi
jmp 0x100d1ce3
nop
test byte [ebp - 0x48], 0x40
jne 0x100d1614
mov ebp, ebp
jmp 0x100d1ce3
mov eax, dword [ebp - 0x40]
cmp eax, 0x20
je 0x100d1628
cmp eax, 0x10
je 0x100d1628
mov eax, eax
jmp 0x100d1ce3
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
nop
mov ebx, ebx
mov esi, esi
mov dword [ebp - 0x11c], 0
lea ecx, [ecx]
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [0x102daa74]
jg 0x100d1ce3
test esi, esi
jne 0x100d165e
mov dword [ebp - 0x114], esi
jmp 0x100d1666
mov edx, dword [esi]
mov dword [ebp - 0x114], edx
nop
test esi, esi
jne 0x100d166f
xor ebx, ebx
jmp 0x100d1672
mov ebx, dword [esi + 4]
mov ah, ah
mov eax, dword [ebp - 0x11c]
push eax
call fcn.100cdf10
add esp, 4
mov edi, eax
mov dword [ebp - 0x118], edi
mov ch, ch
test edi, edi
jne 0x100d169b
nop
add dword [ebp - 0x11c], 1
jmp 0x100d1640
push 0
push 0
push 0
push 6
push edi
call fcn.100bb9d0
mov esi, eax
mov dword [ebp - 0x1cc], esi
push ebx
pop ebx
test esi, esi
jne 0x100d16cf
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, edi
mov esi, dword [ebp + 0x34]
add dword [ebp - 0x11c], 1
jmp 0x100d1640
mov ebp, ebp
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov bl, bl
mov dword [ebp - 4], eax
mov edi, dword [esi + 0xc]
nop
lea ecx, [ebp + 0x1c]
push ecx
push edi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov dh, dh
mov bl, bl
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov dh, dh
push edi
call fcn.10042850
add esp, 4
mov eax, eax
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x100d1764
mov eax, dword [ebp - 0x12c]
cmp eax, dword [esi + 0x14]
jne 0x100d172d
mov ecx, dword [ebp - 0x128]
cmp ecx, dword [esi + 0x18]
je 0x100d1764
mov eax, dword [0x102db438]
xor edi, edi
cmp eax, edi
je 0x100d174c
push ecx
pop ecx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, edx
mov dword [0x102db438], edi
mov bh, bh
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x14], ecx
push ebx
pop ebx
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x18], edx
mov al, al
jmp 0x100d1766
xor edi, edi
mov dword [ebp - 4], 0xfffffffe
cmp dword [0x102db438], edi
jne 0x100d18f4
mov cl, cl
push 0x7c
push edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.1010efd0
add esp, 0xc
mov al, al
mov dword [ebp - 0x1b8], 0x7c
mov eax, eax
mov dword [ebp - 0x1b4], 7
mov edx, edx
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x1c4], eax
ja 0x100d17bc
mov dword [ebp - 0x1ac], eax
mov cl, cl
jmp 0x100d17c7
lea ecx, [eax + eax]
mov dword [ebp - 0x1ac], ecx
mov edi, edi
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x1bc], eax
ja 0x100d17dc
mov dword [ebp - 0x1b0], eax
xchg ebx, eax
xchg ebx, eax
jmp 0x100d17e7
lea edx, [eax + eax]
mov dword [ebp - 0x1b0], edx
mov dl, dl
mov dl, dl
mov dword [ebp - 0x150], 0x840
mov edi, edi
cmp dword [0x102db43c], edi
je 0x100d1812
test dword [ebp - 0x2c], 0x4000
je 0x100d1812
mov dword [ebp - 0x150], 0x4040
mov esi, esi
mov dword [ebp + 0x14], edi
push ecx
pop ecx
mov dword [ebp + 0x18], edi
mov ebp, ebp
mov dword [ebp + 0x10], edi
mov ah, ah
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x90]
call eax
push ecx
pop ecx
cmp eax, edi
jge 0x100d1857
mov esi, esi
push esi
call fcn.100bba00
mov ebp, ebp
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dh, dh
jmp 0x100d1ce3
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 0x18]
push ecx
push 0x10179bc0
push eax
mov edx, dword [edx]
call edx
mov ebx, ebx
cmp eax, edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x100d189b
call edx
mov ecx, ecx
push esi
call fcn.100bba00
mov ebx, ebx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, edi
mov al, al
jmp 0x100d1ce3
call edx
nop
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push edi
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp - 0x1b8]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov dh, dh
cmp eax, edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x100d18e6
call edx
mov edi, edi
push esi
call fcn.100bba00
mov ecx, ecx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, al
mov cl, cl
jmp 0x100d1ce3
call edx
mov cl, cl
mov eax, dword [ebp + 0x10]
mov dword [0x102db438], eax
mov ah, ah
mov eax, dword [ebp - 0x114]
cmp eax, edi
jne 0x100d1903
mov eax, dword [ebp + 0x1c]
mov al, al
cmp ebx, edi
jne 0x100d190c
mov ebx, dword [ebp + 0x20]
mov al, al
mov ah, ah
sub eax, dword [ebp + 0x1c]
mov dword [ebp], eax
push ebx
pop ebx
sub ebx, dword [ebp + 0x20]
mov dword [ebp + 4], ebx
push ecx
pop ecx
mov ecx, dword [ebp]
mov edx, dword [ebp - 0x1c0]
add ecx, edx
mov dword [ebp + 8], ecx
mov edi, edi
mov eax, dword [ebp + 4]
mov ecx, dword [ebp - 0x1c8]
add eax, ecx
mov dword [ebp + 0xc], eax
mov ah, ah
mov eax, dword [0x102db438]
mov edx, dword [eax]
push edi
push 0x1000000
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, dword [ebp + 0x28]
push ecx
lea ecx, [ebp]
push ecx
push eax
mov edx, dword [edx + 0x14]
call edx
mov al, al
cmp eax, edi
jge 0x100d1981
push esi
call fcn.100bba00
xchg ebx, eax
xchg ebx, eax
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, ecx
mov edi, edi
jmp 0x100d1ce3
mov eax, dword [0x102db2a8]
mov dword [ebp - 0x114], eax
push eax
pop eax
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.100cdd60
add esp, 8
mov edi, eax
mov dword [ebp - 0x1dc], edi
mov dh, dh
test edi, edi
je 0x100d1c7f
mov ebx, dword [0x102db438]
mov dword [ebp - 0x1d8], ebx
mov edx, edx
mov ebx, ebx
push 0x7c
push 0
lea edx, [ebp - 0x1b8]
push edx
call fcn.1010efd0
add esp, 0xc
mov al, al
mov dword [ebp - 0x1b8], 0x7c
mov ch, ch
mov eax, dword [ebx]
push 0
push 1
lea ecx, [ebp - 0x1b8]
push ecx
push 0
push ebx
mov edx, dword [eax + 0x64]
call edx
mov ebp, ebp
test eax, eax
jne 0x100d1c74
mov eax, dword [ebp - 0x114]
push eax
push edi
call fcn.100cdeb0
add esp, 8
test eax, eax
je 0x100d1c63
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x124], ecx
nop
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1e0], edx
push ecx
pop ecx
lea eax, [esi + 0x24]
mov dword [ebp - 0x120], eax
mov al, al
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
mov dword [ebp - 0x1d4], eax
push edx
pop edx
mov ah, ah
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, ecx
mov ebp, ebp
mov ebx, ebx
mov eax, eax
mov eax, dword [esi + 0x18]
push ecx
pop ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x13c], ecx
mov edi, edi
mov edi, edi
xor ecx, ecx
mov dword [esi + 0x20], ecx
mov edx, edx
cmp dword [ebp - 0x164], 0x10
jne 0x100d1a88
mov dword [esi + 0x20], 1
push ecx
pop ecx
cmp dword [ebp - 0x114], ecx
jne 0x100d1a95
mov dword [esi + 0x20], ecx
push edx
pop edx
cmp eax, ecx
jbe 0x100d1c2c
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x164], 0x10
jne 0x100d1be0
cmp dword [ebp - 0x114], 0
jne 0x100d1bb9
push ebx
pop ebx
xor edi, edi
cmp dword [ebp - 0x13c], edi
jbe 0x100d1c03
lea ecx, [ecx]
mov edx, dword [ebp - 0x124]
movzx eax, word [edx + edi*2]
mov ah, ah
movzx eax, ax
mov ecx, eax
shr ecx, 8
and ecx, 0xf8
mov edi, edi
mov ebx, eax
shr ebx, 3
and ebx, 0xfc
mov edx, edx
and eax, 0x1f
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x138], eax
xchg ebx, eax
xchg ebx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
add ecx, eax
push ebx
pop ebx
mov eax, 0x4104105
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
add ebx, eax
mov edx, edx
mov eax, 0x8421085
mul dword [ebp - 0x138]
mov esi, edx
mov eax, dword [ebp - 0x138]
mov edx, eax
sub edx, esi
shr edx, 1
add edx, esi
shr edx, 4
add eax, edx
mov ah, ah
cmp ecx, 0xff
jbe 0x100d1b67
mov ecx, 0xff
mov eax, eax
cmp ebx, 0xff
jbe 0x100d1b76
mov ebx, 0xff
xchg ebx, eax
xchg ebx, eax
cmp eax, 0xff
jbe 0x100d1b8f
mov dword [ebp - 0x138], 0xff
mov dh, dh
mov eax, dword [ebp - 0x138]
xor edx, edx
mov dh, cl
mov dl, bl
shl edx, 8
movzx eax, al
or edx, eax
mov ecx, dword [ebp - 0x120]
mov dword [ecx + edi*4], edx
mov ebx, ebx
add edi, 1
cmp edi, dword [ebp - 0x13c]
jb 0x100d1ad0
jmp 0x100d1c03
mov eax, dword [ebp - 0x13c]
add eax, eax
add eax, eax
shr eax, 1
push eax
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.101102f0
add esp, 0xc
mov esi, esi
jmp 0x100d1c03
mov eax, dword [ebp - 0x13c]
add eax, eax
add eax, eax
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.101102f0
add esp, 0xc
mov edx, edx
mov eax, dword [ebp - 0x1e0]
add dword [ebp - 0x124], eax
mov ebx, ebx
mov ecx, dword [ebp - 0x1d4]
add dword [ebp - 0x120], ecx
push edx
pop edx
sub dword [ebp - 0x1d0], 1
jne 0x100d1aa3
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, esi
push ebx
pop ebx
mov esi, dword [ebp - 0x1cc]
mov dword [esi + 0x1c], 1
mov esi, esi
mov edx, dword [ebp - 0x114]
push edx
mov edi, dword [ebp - 0x1dc]
push edi
call fcn.100cdee0
add esp, 8
mov ebp, ebp
mov ebx, dword [ebp - 0x1d8]
mov eax, dword [ebx]
push 0
push ebx
mov ecx, dword [eax + 0x80]
call ecx
mov bl, bl
jmp 0x100d1c76
mov eax, eax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
pop eax
push esi
call fcn.100bba00
mov ebx, ebx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebp, ebp
mov esi, dword [ebp + 0x34]
add dword [ebp - 0x11c], 1
jmp 0x100d1640
mov esi, esi
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100d1cf4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov al, al
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x100d1d05
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov cl, cl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x2c
mov esp, ebp
pop ebp
ret