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

Disassembly:
mov eax, 0x10131e65
call fcn.1011695c
sub esp, 0x12c
mov eax, dword [0x10169ccc]
xor eax, dword [ebp + 4]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x2dc]
cmp byte [eax], 0
push esi
push edi
jne 0x100d8963
mov byte [eax], 1
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x90], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0xa4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.100da783
lea ecx, [ebx + 0x110]
mov edi, ecx
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x118]
push ecx
push ecx
fstp dword [esp + 4]
fld dword [ecx]
mov ecx, dword [0x109b242c]
fstp dword [esp]
call fcn.1001ff8a
lea eax, [ebx + 0x104]
fstp dword [ebx + 0x114]
mov edi, eax
lea esi, [ebp + 0x1e]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x10c]
push ecx
push ecx
mov ecx, dword [0x109b242c]
fstp dword [esp + 4]
fld dword [eax]
fstp dword [esp]
call fcn.1001ff8a
fstp dword [ebx + 0x108]
lea ecx, [ebx + 0x104]
fld dword [ecx + 8]
lea eax, [ebx + 0x110]
fsub dword [eax + 8]
sub esp, 0xc
fld dword [ecx + 4]
mov edi, esp
fsub dword [eax + 4]
lea esi, [ebp - 0x30]
fld dword [ecx]
sub esp, 0xc
fsub dword [eax]
fstp dword [ebp - 0x30]
fstp dword [ebp - 0x2c]
fstp dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
fldz
fstp dword [ebp - 0x20]
movsd dword es:[edi], dword [esi]
fldz
fstp dword [ebp - 0x1c]
fld1
movsd dword es:[edi], dword [esi]
fstp dword [ebp - 0x18]
lea esi, [ebp - 0x20]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100f217f
mov ecx, dword [ebx + 0x10]
fadd dword [0x101391f8]
add esp, 0x14
fld st(0)
fstp dword [esp]
fstp st(0)
call fcn.100da75a
cmp word [ebp + 0x18], 0xffff
je 0x100d8a66
mov eax, dword [ebp + 0x40]
mov dword [ebx + 0x2c8], eax
mov eax, dword [ebp + 0x44]
mov dword [ebx + 0x2cc], eax
lea ecx, [ebp - 0x138]
call fcn.1010f720
push dword [ebx + 0x2cc]
and dword [ebp - 4], 0
push dword [ebx + 0x2c8]
lea eax, [ebp - 0x138]
push str.Affection:_x_n
push eax
call fcn.1010f490
add esp, 0x10
lea ecx, [ebp - 0x138]
call fcn.1010f460
sub esp, 0x100
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.1010f770
call fcn.100f211e
add esp, 0x100
and dword [ebp - 0x14], 0
lea edi, [ebp + 0x34]
lea esi, [ebx + 0x26c]
mov al, byte [edi - 4]
mov ecx, dword [ebp - 0x14]
mov byte [ebx + ecx + 0x2ac], al
mov ax, word [edi - 2]
test ax, ax
jne 0x100d8af2
or dword [esi - 0x1a8], 0xffffffff
or dword [esi - 0x40], 0xffffffff
or dword [esi], 0xffffffff
jmp 0x100d8c29
movsx eax, ax
mov dword [esi - 0x1a8], eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0xc]
cmp ecx, 0x3e8
jl 0x100d8b87
cmp ecx, 0x270f
jg 0x100d8b87
mov ecx, dword [edi]
test ecx, ecx
jle 0x100d8b1e
mov dword [esi - 0x40], ecx
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov ecx, dword [0x109be1d0]
cmp eax, dword [ecx + 0x2420]
jne 0x100d8c29
lea ecx, [ebx + 0x2de]
call fcn.1010f460
sub esp, 0x100
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.1010f770
mov ecx, dword [0x109be1f8]
call fcn.100ecd94
lea eax, [ebx + 0x2d4]
push eax
push dword [ebx + 0xa4]
mov byte [ebx + 0x2d0], 1
mov ecx, dword [0x109be1e0]
call fcn.1000527a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x2d8], eax
jmp 0x100d8c29
cmp word [ebp + 0x18], 0xffff
je 0x100d8bf0
mov ecx, dword [edi]
test ecx, ecx
jle 0x100d8b9c
mov dword [esi - 0x40], ecx
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov ecx, dword [0x109be1d0]
cmp eax, dword [ecx + 0x2420]
jne 0x100d8bf7
lea ecx, [ebx + 0x2de]
call fcn.1010f460
sub esp, 0x100
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.1010f770
mov ecx, dword [0x109be1f8]
call fcn.100ecd94
mov byte [ebx + 0x2d0], 1
mov dword [ebx + 0x2d4], 0x64
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x2d8], eax
jmp 0x100d8bf7
or dword [esi - 0x40], 0xffffffff
or dword [esi], 0xffffffff
mov eax, dword [0x109be1d0]
mov eax, dword [eax + 0x2420]
cmp dword [esi - 0x1a8], eax
jne 0x100d8c29
cmp dword [ebp + 0xc], 0
je 0x100d8c29
cmp dword [ebp + 0x2a], 0
je 0x100d8c29
push dword [ebp + 0x2e]
mov ecx, dword [0x109be280]
push 2
push dword [ebp + 0xc]
call fcn.1009ceac
inc dword [ebp - 0x14]
add esi, 4
add edi, 0x18
cmp dword [ebp - 0x14], 0x10
jl 0x100d8ac9
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.100da7b9
movzx edi, word [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
movzx esi, word [ebp + 0x12]
mov eax, dword [ebp - 0x34]
sub ecx, edi
mov edx, ecx
sub eax, esi
imul edx, ecx
mov ecx, eax
imul ecx, eax
mov dword [ebp - 0x14], edx
push ecx
fild dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push ecx
fild dword [ebp - 0x14]
faddp st(1)
fstp qword [esp]
call fcn.10117cc4
fcom dword [0x1013467c]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jne 0x100d8d28
mov ecx, dword [ebx + 0x10]
fstp st(0)
call fcn.100da63d
mov eax, dword [0x109be19c]
shl eax, 8
push esi
add eax, 0x109be418
inc dword [0x109be19c]
mov ecx, dword [ebx]
push edi
push dword [ecx + 0xc]
push 0x1014423c
push eax
call fcn.1010f490
add esp, 0x14
cmp dword [0x109be19c], 0xa
jne 0x100d8cd1
and dword [0x109be19c], 0
mov ax, word [ebp + 0x10]
mov ecx, dword [0x109b242c]
mov word [ebp - 0x14], ax
mov ax, word [ebp + 0x12]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100138f9
mov ecx, dword [ebx + 0x10]
sub esp, 0xc
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100da701
mov ecx, dword [ebx + 0x10]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.100da783
mov ecx, dword [0x109b242c]
push eax
push dword [ebx + 4]
call fcn.1002e3bf
jmp 0x100d8d7e
fcomp dword [0x101346c8]
fnstsw ax
test ah, 0x41
jne 0x100d8d7b
mov ecx, dword [ebx + 0x10]
push esi
push edi
call fcn.100da8fd
test eax, eax
jne 0x100d8d7b
push eax
fldz
push ecx
fstp dword [esp]
push 0xffffffffffffffff
mov ecx, ebx
mov dword [ebx + 0x2bc], 3
mov dword [ebx + 0x18], 2
call fcn.100d7280
cmp word [ebp + 0x18], 0xffff
jne 0x100d8f17
mov byte [ebx + 0x229], 1
jmp 0x100d8f17
xor edi, edi
inc edi
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
cmp eax, edi
jl 0x100d8ec9
cmp eax, 0x3e7
jg 0x100d8ec9
cmp word [ebp + 0x18], 0xffff
jne 0x100d8f17
mov eax, dword [ebx + 0xa4]
xor esi, esi
cmp eax, esi
je 0x100d8eb1
mov ecx, dword [0x109b242c]
push eax
call fcn.10016263
cmp eax, 0xa
mov dword [ebx + 0xa8], eax
jne 0x100d8e26
push dword [ebx + 0xa4]
fldz
mov dword [ebx + 0x18], 0x15
push ecx
fstp dword [esp]
push edi
mov ecx, ebx
call fcn.100d7280
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
push esi
push dword [ebx + 4]
mov dword [ebx + 0xb4], eax
push esi
push dword [ebx + 0xa4]
lea eax, [ebp + 0x1ac]
mov dword [ebx + 0xb8], 0x3e8
mov ecx, dword [0x109b242c]
push eax
call fcn.1001cd4d
mov dword [ebx + 0xc0], 2
jmp 0x100d8f17
cmp eax, 0x14
jne 0x100d8f17
push dword [ebx + 0xa4]
fldz
mov dword [ebx + 0x18], 0x16
push ecx
fstp dword [esp]
push edi
mov ecx, ebx
call fcn.100d7280
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xb4], eax
mov ecx, dword [0x109be1e0]
lea eax, [ebx + 0xb8]
push eax
push edi
push dword [ebx + 0xa4]
call fcn.100052fa
lea esi, [ebx + 0xac]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100d8e88
mov ecx, dword [0x109b242c]
push eax
call fcn.10016b3f
mov ecx, dword [0x109b242c]
push edi
push edi
push dword [ebx + 4]
xor edi, edi
push edi
push dword [ebx + 0xa4]
push esi
call fcn.1001cd4d
cmp dword [esi], edi
jne 0x100d8ea9
or dword [esi], 0xffffffff
mov dword [ebx + 0xc0], edi
jmp 0x100d8f17
push esi
fldz
push ecx
fstp dword [esp]
push edi
mov ecx, ebx
mov dword [ebx + 0x18], 0x14
call fcn.100d7280
jmp 0x100d8ea9
push 2
pop eax
push edi
push 0
push dword [ebx + 4]
mov dword [ebx + 0xc0], eax
mov ecx, dword [0x109b242c]
push eax
push dword [ebx + 0xa4]
lea eax, [ebp + 0x1ac]
push eax
call fcn.1001cd4d
fldz
mov eax, dword [ebx]
movsx eax, word [eax + 0x8a]
push 0
push ecx
mov ecx, ebx
mov dword [ebx + 0x88], eax
fstp dword [esp]
push edi
mov dword [ebx + 0x18], 0x14
call fcn.100d7280
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.1010f440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
call fcn.10115a7a
pop edi
pop esi
pop ebx
leave
ret 0x1a8