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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10191930], 1
push esi
jne 0x10076966
cmp byte [0x1012d3fd], 1
jne 0x100768b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x1012d218], edx
mov byte [0x1012d3fd], 0
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
sub edx, dword [0x1012d218]
cmp edx, 5
jbe 0x1007701b
push 0
call dword [sym.imp.MSVCR100.dll__time64]
push eax
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 8
call fcn.10037680
call esi
mov esi, dword [sym.imp.MSVCR100.dll_rand]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x1012d218], edx
call esi
cdq
mov ecx, 5
idiv ecx
sub esp, 8
mov dword [ebp - 0x14], edx
fild dword [ebp - 0x14]
fadd dword [0x1012d2ac]
fsub qword [0x1009ea70]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fstp dword [esp + 4]
fldz
fstp dword [esp]
call esi
cdq
mov ecx, 5
idiv ecx
push ecx
mov dword [ebp - 0x14], edx
fild dword [ebp - 0x14]
fadd dword [0x1012d2a8]
fsub qword [0x1009ea70]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fstp dword [esp]
call fcn.10037ba0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [0x361f6dc]
test edi, edi
je 0x1007701a
mov eax, dword [edi + 0x1d24]
push ebx
push 0xaf2ae4
push eax
mov dword [ebp - 8], eax
call fcn.10006f00
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
call esi
test ebx, ebx
je 0x10076fd3
movzx edx, word [ebx + 0x14]
fld dword [edi + 0x1f64]
lea ebx, [edi + 0x1f64]
mov dword [0x101b8d20], eax
mov dword [ebp - 0x14], edx
call fcn.10085e30
mov dword [ebp - 0x10], eax
fld dword [edi + 0x1f6c]
lea eax, [edi + 0x1f6c]
mov dword [ebp - 0x18], eax
call fcn.10085e30
cmp dword [0x10191858], 0
mov dword [ebp - 0xc], eax
jne 0x10076cd3
mov eax, dword [0x1012d8f8]
cmp eax, 8
jge 0x10076a0d
mov ecx, dword [edi + 0x1d48]
mov ebx, 1
mov dword [eax*4 + 0x1012d768], ecx
add dword [0x1012d8f8], ebx
jmp 0x10076b1a
mov ecx, dword [0x1012d768]
mov eax, 0x1012d768
cmp dword [eax], ecx
jne 0x10076abb
add eax, 4
cmp eax, 0x1012d788
jl 0x10076a18
test ecx, ecx
je 0x10076a3e
cmp ecx, 0xff
je 0x10076a3e
cmp ecx, 0xfe
jne 0x10076abb
mov edi, 1
cmp dword [0x1011cd2c], edi
jne 0x10076a8b
fild dword [ebp - 0xc]
sub esp, 8
fstp dword [esp + 4]
fild dword [ebp - 0x10]
fstp dword [esp]
call fcn.10037870
mov edx, dword [ebp - 0x14]
push 0
push edx
push 0xffffffffffffffff
call fcn.100379b0
add esp, 0x14
pop ebx
pop edi
mov dword [0x1011cd2c], 2
mov dword [0x1012d8f8], 0
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [0x1012d3bc], eax
call esi
push 0
mov dword [0x1012d224], eax
call fcn.10072150
add esp, 4
pop ebx
mov dword [0x1011cd2c], edi
pop edi
mov dword [0x1012d8f8], 0
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1012d76c]
mov edx, dword [0x1012d770]
mov eax, dword [0x1012d774]
mov dword [0x1012d768], ecx
mov ecx, dword [0x1012d778]
mov dword [0x1012d76c], edx
mov edx, dword [0x1012d77c]
mov dword [0x1012d770], eax
mov eax, dword [0x1012d780]
mov dword [0x1012d774], ecx
mov ecx, dword [0x1012d784]
mov dword [0x1012d778], edx
mov dword [0x1012d77c], eax
mov dword [0x1012d780], ecx
mov dword [0x1012d8f8], 7
mov ebx, 1
cmp byte [0x1012d3fd], 1
jne 0x10076b2e
mov dword [0x1011cd2c], ebx
jmp 0x10076d69
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, dword [0x1012d218]
cmp edx, 0xf
jbe 0x10077019
mov edx, dword [ebp - 4]
cmp dword [edx + 0x610], ebx
jle 0x10077019
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x1012d218], edx
mov edx, dword [ebp - 8]
mov dword [0x1012d3bc], edx
call esi
mov dword [0x1012d224], eax
mov al, byte [0x1012d412]
cmp dword [0x10191854], ebx
jne 0x10076c00
test al, al
jne 0x10076c00
mov ecx, dword [0x100eaf2c]
xor eax, eax
mov dword [0x1011d1b4], eax
mov dword [0x1011d1ac], eax
mov eax, dword [0x101a46dc]
push fcn.1005bba0
push 0x1f4
add eax, 0x4d
push eax
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1012d2ac]
sub esp, 0xc
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x1012d2a8]
fstp dword [esp]
call fcn.10037ba0
push 0xffff
call fcn.1006ddc0
push 0x100a19c4
mov dword [0x1011cd2c], ebx
call fcn.10008090
add esp, 0x14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x10191928], ebx
jne 0x10076cb0
test al, al
jne 0x10076cb0
push 0xffff
call fcn.1006ddc0
mov edi, dword [sym.imp.USER32.dll_KillTimer]
add esp, 4
xor esi, esi
lea esp, [esp]
mov edx, dword [0x101a46dc]
mov ecx, dword [0x100eaf2c]
lea eax, [edx + esi + 0x44]
push eax
push ecx
call edi
add esi, ebx
cmp esi, 0xa
jl 0x10076c30
mov edx, dword [0x101a46dc]
mov eax, dword [0x100eaf2c]
push 0x1003e180
push 0x12c
add edx, 0x4d
push edx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1012d2ac]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [0x1011d1ac], 0
fldz
mov dword [0x1011cd2c], ebx
fstp dword [esp + 4]
fld dword [0x1012d2a8]
fstp dword [esp]
call fcn.10037ba0
push 0x100a19bc
call fcn.10008090
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
call fcn.10072150
fild dword [ebp - 0xc]
fstp dword [esp]
push ecx
fild dword [ebp - 0x10]
fstp dword [esp]
call fcn.10037870
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10a4]
fld dword [eax + 0x288]
mov edi, dword [ebp - 0x18]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [eax + 0x280]
fstp dword [esp + 8]
fld dword [edi]
fstp dword [esp + 4]
fld dword [ebx]
fstp dword [esp]
call fcn.100081f0
call fcn.10085e30
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
fld dword [eax + 0x107c]
fstp dword [esp + 0xc]
fld dword [eax + 0x1074]
fstp dword [esp + 8]
fld dword [edi]
fstp dword [esp + 4]
fld dword [ebx]
fstp dword [esp]
call fcn.100081f0
add esp, 0x10
call fcn.10085e30
cmp eax, 0x1e
jge 0x10076d56
cmp dword [ebp - 0x18], 0x1e
jle 0x10076d56
pop ebx
pop edi
mov byte [0x1012d3fd], 1
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x1012d3fd], 1
jne 0x10076d8b
mov dword [0x1011cd2c], 1
mov byte [0x1012d3fd], 0
call esi
mov edx, eax
mov eax, 0x10624dd3
mul edx
pop ebx
shr edx, 6
pop edi
mov dword [0x1012d218], edx
pop esi
mov esp, ebp
pop ebp
ret
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, dword [0x1012d218]
cmp edx, 7
jb 0x10076df3
cmp dword [0x1011cd2c], 1
jne 0x10076df3
call esi
mov ecx, dword [0x10192e78]
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, dword [ebp - 0x14]
push 0
push eax
dec ecx
shr edx, 6
push ecx
mov dword [0x1012d218], edx
call fcn.100379b0
mov edx, dword [0x10192e78]
dec edx
push 0x37
push edx
call fcn.10037da0
add esp, 0x14
inc dword [0x1011cd2c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, dword [0x1012d218]
cmp edx, 1
jb 0x10076e60
cmp dword [0x1011cd2c], 2
jne 0x10076e60
call esi
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov dword [0x1012d218], edx
fld dword [edi]
call fcn.10085e30
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
push ecx
fstp dword [esp]
fld dword [ebx]
call fcn.10085e30
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
push ecx
fstp dword [esp]
call fcn.10037870
add esp, 8
inc dword [0x1011cd2c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
sub edx, dword [0x1012d218]
cmp edx, 1
jb 0x10077019
cmp dword [0x1011cd2c], 3
jne 0x10077019
cmp dword [0x10191934], 1
jne 0x10076f9e
mov edx, dword [ebp - 4]
mov edi, dword [edx + 0x10a4]
fld dword [edi + 0x280]
call fcn.10085e30
mov dword [0x1012d368], eax
fld dword [edi + 0x288]
call fcn.10085e30
fild dword [ebp - 0xc]
sub esp, 0x10
mov dword [0x1012d36c], eax
fstp dword [esp + 0xc]
fild dword [ebp - 0x10]
fstp dword [esp + 8]
fild dword [0x1012d36c]
fstp dword [esp + 4]
fild dword [0x1012d368]
fstp dword [esp]
call fcn.100081f0
fcomp qword [0x10098bb0]
add esp, 0x10
sub esp, 0xc
fnstsw ax
test ah, 1
jne 0x10076f04
fld dword [0x100a19b8]
jmp 0x10076f0a
fld dword [0x100a15f0]
fstp dword [esp + 8]
fild dword [0x1012d36c]
fstp dword [esp + 4]
fild dword [0x1012d368]
fstp dword [esp]
call fcn.10008240
mov dword [ebp - 0x18], edx
fld dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x1c], eax
call fcn.10085e30
fld dword [ebp - 0x1c]
mov dword [0x1012d370], eax
call fcn.10085e30
mov dword [0x1012d374], eax
mov eax, dword [ebp - 8]
mov dword [0x1012d350], eax
call esi
mov ecx, dword [0x101a46dc]
mov edx, dword [0x100eaf2c]
push 0x10073cf0
push 0x12c
add ecx, 0x46
push ecx
xor esi, esi
push edx
mov dword [0x1012d228], eax
mov dword [0x1012d378], esi
call dword [sym.imp.USER32.dll_SetTimer]
pop ebx
pop edi
mov dword [0x1011d1b4], esi
mov dword [0x1011d1ac], esi
mov dword [0x1011cd68], 4
pop esi
mov esp, ebp
pop ebp
ret
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x1012d218], edx
mov edx, dword [ebp - 8]
mov dword [0x1012d3bc], edx
call esi
push 0
mov dword [0x1012d224], eax
call fcn.10072150
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub eax, dword [0x101b8d20]
cmp eax, 0x2710
jb 0x10077019
call esi
fld dword [edi + 0x1f6c]
mov dword [0x101b8d20], eax
call fcn.10085e30
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
push ecx
fstp dword [esp]
fld dword [edi + 0x1f64]
call fcn.10085e30
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
push ecx
fstp dword [esp]
call fcn.10037870
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret