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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
call fcn.0047fd20
mov dword [0x9cf37c], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x479d89
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x34], edx
jmp 0x479d92
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], 0
fild qword [ebp - 0x3c]
fstp qword [0x7d12b8]
cmp dword [ebp - 0xc], 0
je 0x47a937
call fcn.004936a0
test eax, eax
jne 0x479dc7
call fcn.00479c10
xor eax, eax
jmp 0x47a93c
xor eax, eax
mov word [0x124bc40], ax
mov dword [0x7d12b0], 0
call fcn.00478a10
mov ecx, dword [0xf1ce2c]
and ecx, 1
jne 0x479e18
mov edx, dword [0xf1ce2c]
and edx, 2
jne 0x479e18
movsx eax, byte [0x7d25f5]
and eax, 2
jne 0x479e18
movsx ecx, byte [0x7d2608]
and ecx, 2
jne 0x479e18
movsx edx, byte [0x7d2603]
and edx, 2
je 0x479e38
cmp dword [ebp - 8], 0x19
jge 0x479e25
mov dword [ebp - 8], 0x19
cmp dword [ebp - 8], 0x22
jl 0x479e38
cmp dword [ebp - 8], 0x25
jg 0x479e38
mov dword [ebp - 8], 0x19
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x25
ja case.0x479e4b.35
mov ecx, dword [ebp - 0x40]
jmp dword [ecx*4 + 0x47a940]
call fcn.0046d480
xor edx, edx
mov word [0x7d2326], dx
mov ax, word [0x7d2326]
mov word [0x7d2324], ax
mov cx, word [0x7d2324]
mov word [0x7d2322], cx
mov dx, word [0x7d2322]
mov word [0x7d2320], dx
mov byte [0x7d232a], 0
mov byte [0x7d2329], 0
mov byte [0x7d2328], 0
mov byte [0x7d232a], 0xff
mov byte [0x7d2329], 0xff
mov byte [0x7d2328], 0xff
mov byte [0x7d232b], 0xff
mov byte [0x7d232c], 0
mov byte [0x7d232d], 0
xor eax, eax
mov word [0x7d232e], ax
movzx ecx, byte [0x7d232d]
or ecx, 0x10
mov byte [0x7d232d], cl
push 1
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 1
movzx edx, byte [0x7d232d]
or edx, 0x10
mov byte [0x7d232d], dl
call fcn.00401430
jmp case.0x479e4b.35
mov dword [0xf1ce4c], 1
mov dword [ebp - 4], 0x3c41d
push 0x3c
push 0x17
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 2
jmp case.0x479e4b.35
mov dword [0xf1ce4c], 1
cmp dword [0x6ba8f8], 0
jne 0x479f7f
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x479f69
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x44], edx
jmp 0x479f72
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 3
jmp case.0x479e4b.35
mov dword [0xf1ce4c], 1
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x479faf
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x48], edx
jmp 0x479fb8
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
cmp edx, dword [ebp - 0x48]
jae 0x479fd9
push 0x1e
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 4
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a024
push 0
push 0x13
call fcn.0046c870
add esp, 8
lea eax, [ebp - 0x14]
push eax
push 0x560b
call fcn.0047dc90
add esp, 8
cmp dword [ebp - 0x14], 1
jl 0x47a013
mov dword [ebp - 8], 0xd
jmp 0x47a01a
mov dword [ebp - 8], 0x11
mov dword [0xf1ce4c], 0
jmp case.0x479e4b.35
mov dword [ebp - 4], 0x560d
push 0x1e
push 0x17
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 6
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a088
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a072
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x4c], edx
jmp 0x47a07b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 7
jmp case.0x479e4b.35
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a0ae
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x50], edx
jmp 0x47a0b7
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x10]
add edx, 0xfa0
cmp edx, dword [ebp - 0x50]
jae 0x47a0d8
push 0x1e
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 8
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a134
lea eax, [ebp - 0x18]
push eax
push 0x3a3e4
call fcn.0047dc90
add esp, 8
cmp dword [ebp - 0x18], 1
jl 0x47a106
mov dword [ebp - 8], 0x1e
jmp 0x47a12d
lea ecx, [ebp - 0x18]
push ecx
push 0x5621
call fcn.0047dc90
add esp, 8
cmp dword [ebp - 0x18], 1
jl 0x47a126
mov dword [ebp - 8], 0x15
jmp 0x47a12d
mov dword [ebp - 8], 0x11
mov dword [ebp - 8], 9
jmp case.0x479e4b.35
mov dword [ebp - 8], 0xa
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a155
mov dword [ebp - 8], 0xb
jmp case.0x479e4b.35
mov dword [ebp - 8], 0xc
jmp case.0x479e4b.35
mov dword [ebp - 8], 0xd
jmp case.0x479e4b.35
mov dword [ebp - 4], 0x560b
push 0x1e
push 0x22
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0xe
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a1d1
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a1bb
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x54], edx
jmp 0x47a1c4
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0xf
jmp case.0x479e4b.35
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a1f7
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x58], edx
jmp 0x47a200
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x10]
add edx, 0xfa0
cmp edx, dword [ebp - 0x58]
jae 0x47a221
push 0x1e
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x10
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a256
lea eax, [ebp - 0x1c]
push eax
push 0x5621
call fcn.0047dc90
add esp, 8
cmp dword [ebp - 0x1c], 1
jl 0x47a24f
mov dword [ebp - 8], 0x15
jmp 0x47a256
mov dword [ebp - 8], 0x11
jmp case.0x479e4b.35
mov dword [ebp - 4], 0x5621
push 0x3c
push 0x1a
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x16
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a2ba
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a2a4
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x5c], edx
jmp 0x47a2ad
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0x17
jmp case.0x479e4b.35
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a2e0
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x60], edx
jmp 0x47a2e9
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
cmp edx, dword [ebp - 0x60]
jae 0x47a30a
push 0x3c
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x18
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a31f
mov dword [ebp - 8], 0x11
jmp case.0x479e4b.35
mov dword [ebp - 4], 0x560c
push 0x1e
push 0x16
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x12
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a383
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a36d
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x64], edx
jmp 0x47a376
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0x13
jmp case.0x479e4b.35
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a3a9
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x68], edx
jmp 0x47a3b2
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
cmp edx, dword [ebp - 0x68]
jae 0x47a3d3
push 0x1e
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x14
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a3e8
mov dword [ebp - 8], 0x1e
jmp case.0x479e4b.35
mov dword [ebp - 4], 0x3a3e4
call fcn.004637b0
test eax, eax
je 0x47a428
push 0
push 0
call fcn.0046c870
add esp, 8
mov byte [0x7d2328], 0
mov al, byte [0x7d2328]
mov byte [0x7d2329], al
mov cl, byte [0x7d2329]
mov byte [0x7d232a], cl
jmp 0x47a434
push 0x1e
push 0
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x1f
jmp case.0x479e4b.35
call fcn.004637b0
test eax, eax
je 0x47a4de
movzx edx, byte [0x7d232a]
add edx, 4
cmp edx, 0xff
jle 0x47a4ad
mov byte [0x7d232a], 0xff
mov byte [0x7d2329], 0xff
mov byte [0x7d2328], 0xff
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a495
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x6c], edx
jmp 0x47a49e
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0x20
jmp 0x47a4dc
movzx eax, byte [0x7d232a]
add eax, 4
mov byte [0x7d232a], al
movzx ecx, byte [0x7d2329]
add ecx, 4
mov byte [0x7d2329], cl
movzx edx, byte [0x7d2328]
add edx, 4
mov byte [0x7d2328], dl
jmp 0x47a51e
cmp dword [0x6ba8f8], 0
jne 0x47a51e
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a508
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x70], edx
jmp 0x47a511
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0x20
jmp case.0x479e4b.35
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a544
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x74], edx
jmp 0x47a54d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x10]
add edx, 0x7d0
cmp edx, dword [ebp - 0x74]
jae 0x47a577
call fcn.004637b0
test eax, eax
jne 0x47a570
push 0x1e
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x21
jmp case.0x479e4b.35
call fcn.004637b0
test eax, eax
je 0x47a60e
movzx eax, byte [0x7d232a]
test eax, eax
je 0x47a5f0
movzx ecx, byte [0x7d232a]
sub ecx, 4
jns 0x47a5bf
mov byte [0x7d2328], 0
mov dl, byte [0x7d2328]
mov byte [0x7d2329], dl
mov al, byte [0x7d2329]
mov byte [0x7d232a], al
jmp 0x47a5ee
movzx ecx, byte [0x7d232a]
sub ecx, 4
mov byte [0x7d232a], cl
movzx edx, byte [0x7d2329]
sub edx, 4
mov byte [0x7d2329], dl
movzx eax, byte [0x7d2328]
sub eax, 4
mov byte [0x7d2328], al
jmp 0x47a60c
call fcn.004637b0
test eax, eax
je 0x47a605
push 0
push 0x13
call fcn.0046c870
add esp, 8
mov dword [ebp - 8], 0x22
jmp 0x47a61e
cmp dword [0x6ba8f8], 0
jne 0x47a61e
mov dword [ebp - 8], 0x22
jmp case.0x479e4b.35
cmp dword [0x6ba8f8], 0
jne 0x47a65f
push 0
push 0x13
call fcn.0046c870
add esp, 8
lea ecx, [ebp - 0x20]
push ecx
push 0x3c41d
call fcn.0047dc90
add esp, 8
cmp dword [ebp - 0x20], 1
jl 0x47a658
mov dword [ebp - 8], 1
jmp 0x47a65f
mov dword [ebp - 8], 0x19
mov dword [0xf1ce4c], 0
jmp case.0x479e4b.35
mov dword [ebp - 4], 0
push 1
push 0
call fcn.0046c870
add esp, 8
call fcn.0046d480
mov dword [ebp - 8], 0x1a
call fcn.0047fd20
test eax, eax
jge 0x47a69f
mov dword [ebp - 8], 0x1c
jmp case.0x479e4b.35
jmp case.0x479e4b.35
mov dword [ebp - 4], 0
push 1
push 0x13
call fcn.0046c870
add esp, 8
call fcn.0046d480
mov dword [ebp - 8], 0x1b
jmp case.0x479e4b.35
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp case.0x479e4b.35
mov dword [ebp - 8], 0x1d
call fcn.00480580
jmp case.0x479e4b.35
push 0x5eaa34
call fcn.00480590
add esp, 4
cmp eax, 1
jne case.0x479e4b.35
mov dword [ebp - 0xc], 0
xor eax, eax
jmp 0x47a93c
call fcn.004012b0
cmp dword [ebp - 4], 0
je 0x47a795
mov edx, dword [ebp - 8]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0x1e
jl 0x47a747
cmp dword [ebp - 0x78], 0x21
jle 0x47a723
jmp 0x47a747
push 0x7d2320
push 0
mov eax, dword [ebp - 4]
push eax
push 0xff
push 0xf0
push 0x140
call fcn.005a19f0
add esp, 0x18
jmp 0x47a795
xor ecx, ecx
mov word [ebp - 0x30], cx
xor edx, edx
mov word [ebp - 0x2e], dx
xor eax, eax
mov word [ebp - 0x2c], ax
xor ecx, ecx
mov word [ebp - 0x2a], cx
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x23], 0x10
xor edx, edx
mov word [ebp - 0x22], dx
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0xff
push 0xf0
push 0x140
call fcn.005a19f0
add esp, 0x18
call fcn.005751e0
call fcn.0059fd60
call fcn.00575650
call fcn.0046c8c0
call fcn.0047c950
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a7cf
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x7c], edx
jmp 0x47a7d8
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x7c], eax
fld qword [0x7d12b8]
fadd qword [0x604ab8]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], 0
fild qword [ebp - 0x84]
fcompp
fnstsw ax
test ah, 0x41
jne 0x47a830
cmp dword [0x604ac8], 0x14
jge 0x47a830
fld qword [0x7d12b8]
fadd qword [0x604ac0]
fstp qword [0x7d12b8]
mov eax, dword [0x604ac8]
add eax, 1
mov dword [0x604ac8], eax
jmp 0x479da8
call fcn.004637b0
test eax, eax
jne 0x47a848
mov ecx, dword [0x6b9edc]
add ecx, 1
mov dword [0x6b9edc], ecx
cmp dword [0x607ee0], 1
jne 0x47a85b
mov dword [0x607ee0], 2
call fcn.005a0c00
cmp dword [0x6bbc48], 1
jne 0x47a8a1
push 0x6b9ee0
push 0x100
push 0
push 0
mov edx, dword [0x6ba8fc]
mov eax, dword [edx + 0x90]
mov ecx, dword [0x6ba8fc]
mov edx, dword [ecx + 0x90]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x18]
call ecx
mov dword [0x6bbc48], 0
call fcn.00464ea0
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, 0x35a4e900
jbe 0x47a8ca
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x35a4e900
div ecx
mov dword [ebp - 0x88], edx
jmp 0x47a8d6
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], 0
fild qword [ebp - 0x90]
fcomp qword [0x7d12b8]
fnstsw ax
test ah, 0x41
jp 0x47a909
push 1
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x47a8a6
fld qword [0x7d12b8]
fadd qword [0x604ac0]
fstp qword [0x7d12b8]
mov dword [0x604ac8], 1
mov eax, dword [0x62f950]
add eax, 1
mov dword [0x62f950], eax
jmp 0x479da8
mov eax, 1
mov esp, ebp
pop ebp
ret