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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
cmp dword [0x103c3de8], 1
push ebx
push esi
push edi
jne 0x10042117
cmp dword [0x1035ff38], 1
jne 0x1004205d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
and dword [0x1035ff38], 0
mov dword [0x1035fd30], eax
jmp 0x1004277f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, 0x3e8
xor edx, edx
mov ecx, edi
div ecx
sub eax, dword [0x1035fd30]
cmp eax, 5
jbe 0x1004277f
cmp dword [0x100a62ac], 1
je 0x1004277f
push 0
call dword [sym.imp.MSVCR100.dll__time64]
push eax
call dword [sym.imp.MSVCR100.dll_srand]
pop ecx
pop ecx
call fcn.10038b91
call esi
xor edx, edx
div edi
mov esi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [0x1035fd30], eax
call esi
push 5
pop ecx
cdq
idiv ecx
push ecx
push ecx
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fadd dword [0x1035fdc8]
fsub qword [0x1009eef0]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fldz
fstp dword [esp]
call esi
push 5
cdq
pop ecx
idiv ecx
push ecx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fadd dword [0x1035fdc4]
fsub qword [0x1009eef0]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.1003a670
add esp, 0xc
jmp 0x1004277f
mov ebx, dword [0x307809c]
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x1004277f
mov eax, dword [ebx + 0x1d20]
mov ecx, 0xe23bd4
mov dword [esp + 0x10], eax
call fcn.10006651
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esp + 0x28], edi
call esi
test edi, edi
je 0x10042736
fld dword [ebx + 0x1f6c]
mov dword [0x103d8a2c], eax
movzx eax, word [edi + 0x14]
mov dword [esp + 0x24], eax
call fcn.100840a0
mov dword [esp + 0x1c], eax
mov eax, ebx
add eax, 0x1f74
mov dword [esp + 0x14], eax
fld dword [eax]
call fcn.100840a0
xor edx, edx
mov dword [esp + 0x18], eax
cmp dword [0x103c3d10], edx
jne 0x10042464
xor ebx, ebx
inc ebx
cmp dword [0x100a62ac], ebx
je 0x1004277f
mov eax, dword [0x10360a18]
cmp eax, 8
jge 0x100421c8
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x1d44]
mov dword [eax*4 + 0x10360888], ecx
inc dword [0x10360a18]
jmp 0x100422ab
mov eax, dword [0x10360888]
mov ecx, 0x10360888
cmp dword [ecx], eax
jne 0x1004225b
add ecx, 4
cmp ecx, 0x103608a8
jl 0x100421d2
cmp eax, edx
je 0x100421f7
cmp eax, 0xff
je 0x100421f7
cmp eax, 0xfe
jne 0x1004225b
cmp dword [0x10112788], ebx
jne 0x10042231
fild dword [esp + 0x18]
push ecx
push ecx
fstp dword [esp + 4]
fild dword [esp + 0x24]
fstp dword [esp]
call fcn.1003a10c
push dword [esp + 0x2c]
xor ecx, ecx
push 0xffffffffffffffff
call fcn.1003a23b
add esp, 0x10
mov dword [0x10112788], 2
jmp 0x1004224f
mov eax, dword [esp + 0x10]
mov dword [0x1035fed4], eax
call esi
push 0
mov dword [0x1035fd3c], eax
call fcn.100384dc
pop ecx
mov dword [0x10112788], ebx
and dword [0x10360a18], 0
jmp 0x1004277f
mov eax, dword [0x1036088c]
mov dword [0x10360888], eax
mov eax, dword [0x10360890]
mov dword [0x1036088c], eax
mov eax, dword [0x10360894]
mov dword [0x10360890], eax
mov eax, dword [0x10360898]
mov dword [0x10360894], eax
mov eax, dword [0x1036089c]
mov dword [0x10360898], eax
mov eax, dword [0x103608a0]
mov dword [0x1036089c], eax
mov eax, dword [0x103608a4]
mov dword [0x103608a0], eax
mov dword [0x10360a18], 7
cmp dword [0x1035ff08], 2
je 0x100422ba
mov dword [0x101127c4], edx
cmp dword [0x1035ff38], ebx
jne 0x100422e3
mov dword [0x10112788], ebx
mov dword [0x1035ff38], edx
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [0x1035fd30], eax
jmp 0x1004277f
call esi
mov edi, 0x3e8
xor edx, edx
mov ecx, edi
div ecx
sub eax, dword [0x1035fd30]
cmp eax, 0xf
jbe 0x1004277f
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x614], ebx
jle 0x1004277f
call esi
xor edx, edx
div edi
mov dword [0x1035fd30], eax
mov eax, dword [esp + 0x10]
mov dword [0x1035fed4], eax
call esi
mov dword [0x1035fd3c], eax
mov eax, dword [0x1035ff94]
cmp dword [0x103c3d0c], ebx
jne 0x100423ab
xor edi, edi
cmp eax, edi
jne 0x100423ad
mov eax, dword [0x10114474]
push fcn.10037d4c
push 0x1f4
add eax, 0x4d
push eax
push dword [0x100dfd8c]
mov dword [0x10112c04], edi
mov dword [0x10112bfc], edi
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1035fdc8]
sub esp, 0xc
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fld dword [0x1035fdc4]
fstp dword [esp]
call fcn.1003a670
push 0xffff
call fcn.1003a32b
push 0x10098fa0
mov dword [0x10112788], ebx
call fcn.100060db
add esp, 0x14
jmp 0x1004277f
xor edi, edi
cmp dword [0x103c3de0], ebx
jne 0x1004244e
cmp eax, edi
jne 0x1004244e
push 0xffff
call fcn.1003a32b
pop ecx
xor esi, esi
mov eax, dword [0x10114474]
lea eax, [eax + esi + 0x44]
push eax
push dword [0x100dfd8c]
call dword [sym.imp.USER32.dll_KillTimer]
inc esi
cmp esi, 0xa
jl 0x100423ce
mov eax, dword [0x10114474]
push fcn.10049e0e
push 0x12c
add eax, 0x4d
push eax
push dword [0x100dfd8c]
mov dword [0x1035ff24], edi
call dword [sym.imp.USER32.dll_SetTimer]
fld dword [0x1035fdc8]
sub esp, 0xc
fstp dword [esp + 8]
mov dword [0x10112bfc], edi
fldz
mov dword [0x10112788], ebx
fstp dword [esp + 4]
fld dword [0x1035fdc4]
fstp dword [esp]
call fcn.1003a670
push 0x10098fa8
call fcn.100060db
add esp, 0x10
jmp 0x1004277f
push edi
call fcn.100384dc
fild dword [esp + 0x1c]
fstp dword [esp]
fild dword [esp + 0x20]
jmp 0x10042774
mov eax, dword [edi + 0x10a8]
fld dword [eax + 0x288]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [eax + 0x280]
mov eax, dword [esp + 0x24]
fstp dword [esp + 8]
fld dword [eax]
fstp dword [esp + 4]
fld dword [ebx + 0x1f6c]
fstp dword [esp]
call fcn.100063eb
call fcn.100840a0
fld dword [edi + 0x1080]
fstp dword [esp + 0xc]
mov dword [esp + 0x30], eax
fld dword [edi + 0x1078]
mov eax, dword [esp + 0x24]
fstp dword [esp + 8]
fld dword [eax]
fstp dword [esp + 4]
fld dword [ebx + 0x1f6c]
fstp dword [esp]
call fcn.100063eb
add esp, 0x10
call fcn.100840a0
cmp eax, 0x1e
jge 0x100424f1
cmp dword [esp + 0x20], 0x1e
jle 0x100424f1
mov dword [0x1035ff38], 1
jmp 0x1004277f
xor eax, eax
inc eax
cmp dword [0x1035ff38], eax
jne 0x1004250d
and dword [0x1035ff38], 0
mov dword [0x10112788], eax
jmp 0x100422ce
call esi
mov edi, 0x3e8
xor edx, edx
mov ecx, edi
div ecx
sub eax, dword [0x1035fd30]
cmp eax, 7
jb 0x10042567
cmp dword [0x10112788], 1
jne 0x10042567
call esi
xor edx, edx
div edi
push dword [esp + 0x24]
xor ecx, ecx
mov dword [0x1035fd30], eax
mov eax, dword [0x103c54d8]
dec eax
push eax
call fcn.1003a23b
mov ecx, dword [0x103c54d8]
push 0x37
dec ecx
call fcn.1003a960
add esp, 0xc
inc dword [0x10112788]
jmp 0x1004277f
call esi
xor edx, edx
mov ecx, edi
div ecx
sub eax, dword [0x1035fd30]
cmp eax, 1
jb 0x100425cc
cmp dword [0x10112788], 2
jne 0x100425cc
call esi
xor edx, edx
div edi
mov dword [0x1035fd30], eax
mov eax, dword [esp + 0x14]
fld dword [eax]
call fcn.100840a0
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
push ecx
fstp dword [esp]
fld dword [ebx + 0x1f6c]
call fcn.100840a0
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
push ecx
fstp dword [esp]
call fcn.1003a10c
inc dword [0x10112788]
jmp 0x1004277d
call esi
xor edx, edx
mov ecx, edi
div ecx
sub eax, dword [0x1035fd30]
cmp eax, 1
jb 0x1004277f
cmp dword [0x10112788], 3
jne 0x1004277f
cmp dword [0x100a62ac], 1
je 0x1004277f
cmp dword [0x103c3dec], 1
jne 0x10042712
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0x10a8]
fld dword [edi + 0x280]
call fcn.100840a0
fld dword [edi + 0x288]
mov dword [0x1035fe84], eax
call fcn.100840a0
fild dword [esp + 0x18]
sub esp, 0x10
mov dword [0x1035fe88], eax
fstp dword [esp + 0xc]
fild dword [esp + 0x2c]
fstp dword [esp + 8]
fild dword [0x1035fe88]
fstp dword [esp + 4]
fild dword [0x1035fe84]
fstp dword [esp]
call fcn.100063eb
fcomp qword [0x1009ee30]
add esp, 0x10
sub esp, 0xc
fnstsw ax
test ah, 1
jne 0x1004267a
fld dword [0x1009ef70]
jmp 0x10042680
fld dword [0x1009ef6c]
fstp dword [esp + 8]
fild dword [0x1035fe88]
fstp dword [esp + 4]
fild dword [0x1035fe84]
fstp dword [esp]
call fcn.1000656f
mov dword [esp + 0x38], edx
fld dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x28], eax
call fcn.100840a0
fld dword [esp + 0x28]
mov dword [0x1035fe8c], eax
call fcn.100840a0
mov dword [0x1035fe90], eax
mov eax, dword [esp + 0x10]
mov dword [0x1035fdf4], eax
call esi
mov dword [0x1035fd40], eax
mov eax, dword [0x10114474]
push 0x10042786
push 0x12c
add eax, 0x46
push eax
push dword [0x100dfd8c]
xor esi, esi
mov dword [0x1035fe94], esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x10112c04], esi
mov dword [0x10112bfc], esi
mov dword [0x101127c4], 4
jmp 0x1004277f
call esi
xor edx, edx
div edi
mov dword [0x1035fd30], eax
mov eax, dword [esp + 0x10]
mov dword [0x1035fed4], eax
call esi
push 0
mov dword [0x1035fd3c], eax
call fcn.100384dc
jmp 0x1004277e
sub eax, dword [0x103d8a2c]
cmp eax, 0x2710
jb 0x1004277f
call esi
fld dword [ebx + 0x1f74]
mov dword [0x103d8a2c], eax
call fcn.100840a0
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
push ecx
fstp dword [esp]
fld dword [ebx + 0x1f6c]
call fcn.100840a0
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
push ecx
fstp dword [esp]
call fcn.1003a10c
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret