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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x46fdc3
test byte [esi + 0x320], 1
push edi
je 0x46f679
call fcn.004ac120
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x14], eax
call fcn.0059a110
add eax, 0xf
mov edi, 1
push 0x305
mov ecx, 0x6c6dd0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00448f80
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f648
push 0xffffff00
lea ecx, [ebp - 0x14]
push ecx
sub eax, edx
push eax
push 0x305
mov ecx, 0x6c6dd0
call fcn.00448f80
push eax
push 0
mov ecx, 0x603a40
call fcn.004ad3f0
jmp 0x46f683
call fcn.004ae1e0
mov edi, 1
movzx edx, word [esi + 0x30c]
push ebx
push edx
mov ecx, 0x6d5cf0
call fcn.004d6f20
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x46fd17
cmp word [ebx + 0xec], di
jne 0x46f6f7
push 0
lea edi, [esi + 0x2cc]
push edi
push 0xe6
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x34]
push 0xffffffffffffffff
fstp dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
fld dword [esi + 0x1e4]
push eax
fstp dword [ebp - 0x2c]
push ecx
fld dword [esi + 0x1e8]
lea ecx, [ebp - 0x34]
fstp dword [ebp - 0x28]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
cmp word [ebx + 0xec], 2
jne 0x46f74c
push 0
lea edi, [esi + 0x2cc]
push edi
push 0xe7
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x2c]
push 0xffffffffffffffff
fstp dword [ebp - 0x28]
lea edx, [ebp - 0x34]
fld dword [esi + 0x1e4]
push edx
fstp dword [ebp - 0x34]
push ecx
fld dword [esi + 0x1e8]
lea eax, [ebp - 0x2c]
fstp dword [ebp - 0x30]
mov ecx, edi
fldz
fstp dword [esp]
push 0
push eax
call fcn.004b0390
cmp word [ebx + 0xec], 3
jne 0x46f7a1
push 0
lea edi, [esi + 0x2cc]
push edi
push 0xe8
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x2c]
push 0xffffffffffffffff
fstp dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
fld dword [esi + 0x1e4]
push ecx
fstp dword [ebp - 0x34]
push ecx
fld dword [esi + 0x1e8]
lea edx, [ebp - 0x2c]
fstp dword [ebp - 0x30]
mov ecx, edi
fldz
fstp dword [esp]
push 0
push edx
call fcn.004b0390
cmp word [ebx + 0xec], 4
jne 0x46f7f6
push 0
lea edi, [esi + 0x2cc]
push edi
push 0xe9
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x2c]
push 0xffffffffffffffff
fstp dword [ebp - 0x28]
lea eax, [ebp - 0x34]
fld dword [esi + 0x1e4]
push eax
fstp dword [ebp - 0x34]
push ecx
fld dword [esi + 0x1e8]
lea ecx, [ebp - 0x2c]
fstp dword [ebp - 0x30]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
cmp word [ebx + 0xec], 5
jne 0x46f84b
push 0
lea edi, [esi + 0x2cc]
push edi
push 0xea
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x2c]
push 0xffffffffffffffff
fstp dword [ebp - 0x28]
lea edx, [ebp - 0x34]
fld dword [esi + 0x1e4]
push edx
fstp dword [ebp - 0x34]
push ecx
fld dword [esi + 0x1e8]
lea eax, [ebp - 0x2c]
fstp dword [ebp - 0x30]
mov ecx, edi
fldz
fstp dword [esp]
push 0
push eax
call fcn.004b0390
cmp word [ebx + 0xec], 6
jne 0x46f8a0
push 0
lea edi, [esi + 0x2cc]
push edi
push 0xfa
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x2c]
push 0xffffffffffffffff
fstp dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
fld dword [esi + 0x1e4]
push ecx
fstp dword [ebp - 0x34]
push ecx
fld dword [esi + 0x1e8]
lea edx, [ebp - 0x2c]
fstp dword [ebp - 0x30]
mov ecx, edi
fldz
fstp dword [esp]
push 0
push edx
call fcn.004b0390
cmp dword [esi + 0x324], 0
je 0x46f9ef
movzx eax, word [ebx + 0x4a]
mov ecx, 0x800
cmp ax, cx
jbe 0x46f9ef
mov edx, 0x834
cmp ax, dx
ja 0x46f9ef
mov eax, dword [esi + 0x328]
test eax, eax
je 0x46f99e
cmp dword [eax + 2], 0
je 0x46f950
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp eax, dword [esi + 0x330]
jb 0x46f950
call edi
add eax, 0x50
cmp dword [esi + 0x334], 0
mov dword [esi + 0x330], eax
jne 0x46f90e
inc word [esi + 0x32e]
jmp 0x46f926
mov ax, word [esi + 0x32c]
mov word [esi + 0x32e], ax
mov dword [esi + 0x334], 0
mov ecx, dword [esi + 0x328]
movzx edx, word [ecx + 6]
movzx eax, word [esi + 0x32c]
lea ecx, [edx + eax - 1]
movzx edx, word [esi + 0x32e]
cmp edx, ecx
jl 0x46f950
mov dword [esi + 0x334], 1
movzx eax, word [esi + 0x32e]
push 8
lea edi, [esi + 0x2ec]
push edi
push eax
mov ecx, 0x6d58c8
call fcn.004b5880
push 0xffffffffffffffff
fld1
lea ecx, [ebp - 0x34]
fst dword [ebp - 0x2c]
push ecx
fstp dword [ebp - 0x28]
push ecx
fld dword [esi + 0x1e4]
lea edx, [ebp - 0x2c]
fstp dword [ebp - 0x34]
mov ecx, edi
fld dword [esi + 0x1e8]
fstp dword [ebp - 0x30]
fldz
fstp dword [esp]
push 0
push edx
call fcn.004b0390
push 1
lea edi, [esi + 0x2cc]
push edi
push 0xb26
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0xc]
push 0xffffffffffffffff
fstp dword [ebp - 8]
lea eax, [ebp - 0x1c]
fld dword [esi + 0x1e4]
push eax
fadd qword [0x5d11e8]
push ecx
lea ecx, [ebp - 0xc]
fstp dword [ebp - 0x1c]
fld dword [esi + 0x1e8]
fstp dword [ebp - 0x18]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
lea eax, [ebx + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46f9f5
sub eax, edx
mov edx, dword [ebp - 0x38]
mov edi, eax
mov bl, 0x2b
cmp byte [edi + edx + 2], bl
jne 0x46fad2
mov ecx, esi
call fcn.004ac120
mov eax, dword [ebp - 0x38]
movsx ecx, byte [edi + eax + 3]
push ecx
lea edx, [ebp - 0x28]
push 0x5cf9f8
push edx
call fcn.0059a4c2
add esp, 0xc
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
dec eax
mov dword [ebp - 0x14], eax
call fcn.0059a110
mov ecx, eax
mov eax, 1
sub ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46fa62
push 0xff0a0a0a
sub eax, ecx
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push 0xb
mov ecx, 0x603a40
call fcn.004ad3f0
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x24], eax
call fcn.0059a110
mov dword [ebp - 0x20], eax
mov eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46fab2
sub eax, ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
push 0xa
mov ecx, 0x603a40
call fcn.004ad3f0
mov eax, dword [ebp - 0x38]
cmp byte [edi + eax + 1], bl
jne 0x46fba2
mov ecx, esi
call fcn.004ac120
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx + 0x96]
push edx
lea eax, [ebp - 0x28]
push 0x5cdc20
push eax
call fcn.0059a4c2
add esp, 0xc
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov ebx, 1
sub eax, ebx
mov dword [ebp - 0x14], eax
call fcn.0059a110
sub eax, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46fb33
sub eax, ecx
push 0xff0a0a0a
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
push 0xb
mov ecx, 0x603a40
call fcn.004ad3f0
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x24], eax
call fcn.0059a110
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46fb80
sub eax, ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
push 0xa
mov ecx, 0x603a40
call fcn.004ad3f0
jmp 0x46fba7
mov ebx, 1
cmp dword [esi + 0x314], 0
je 0x46fc93
mov eax, dword [ebp - 0x38]
movzx eax, word [eax + 0x4a]
mov ecx, 0x800
cmp ax, cx
jb 0x46fc1f
mov edx, 0x834
cmp ax, dx
ja 0x46fc1f
push ebx
lea edi, [esi + 0x2cc]
push edi
push 0xab7
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x1c]
push 0xffffffffffffffff
fstp dword [ebp - 0x18]
lea eax, [ebp - 0xc]
fld dword [esi + 0x1e4]
push eax
fstp dword [ebp - 0xc]
push ecx
fld dword [esi + 0x1e8]
lea ecx, [ebp - 0x1c]
fadd qword [0x5d11e8]
fstp dword [ebp - 8]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
cmp dword [esi + 0x314], 0
je 0x46fc93
mov edx, dword [ebp - 0x38]
movzx eax, word [edx + 0x4a]
mov ecx, 0x12c
cmp ax, cx
je 0x46fc43
mov edx, 0x4010
cmp ax, dx
jne 0x46fc93
push ebx
lea edi, [esi + 0x2cc]
push edi
push 0xab7
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x1c]
push 0xffffffffffffffff
fstp dword [ebp - 0x18]
lea eax, [ebp - 0xc]
fld dword [esi + 0x1e4]
push eax
fstp dword [ebp - 0xc]
push ecx
fld dword [esi + 0x1e8]
lea ecx, [ebp - 0x1c]
fadd qword [0x5d11e8]
fstp dword [ebp - 8]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
cmp dword [esi + 0x310], 0
je 0x46fd12
mov edx, dword [ebp - 0x38]
movzx eax, word [edx + 0x4a]
mov ecx, 0x800
cmp ax, cx
jb 0x46fd12
mov edx, 0x834
cmp ax, dx
ja 0x46fd12
push 1
lea edi, [esi + 0x2cc]
push edi
push 0xadb
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x1c]
push 0xffffffffffffffff
fstp dword [ebp - 0x18]
lea eax, [ebp - 0xc]
fld dword [esi + 0x1e4]
push eax
fadd qword [0x5d11e8]
push ecx
lea ecx, [ebp - 0x1c]
fstp dword [ebp - 0xc]
fld dword [esi + 0x1e8]
fadd qword [0x5d11e0]
fstp dword [ebp - 8]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
mov edi, 1
movzx edx, word [esi + 0x258]
push edx
mov ecx, 0x6d5cf0
call fcn.004d7120
pop ebx
test eax, eax
je 0x46fdc2
mov eax, dword [esi + 0x310]
push eax
push 0x5c7828
push 0x6d3ecc
call dword [sym.imp.USER32.dll_wsprintfA]
fld dword [esi + 0x1e4]
add esp, 0xc
call fcn.0059a110
fld dword [esi + 0x1e8]
add eax, 0x1b
mov dword [ebp - 0x14], eax
call fcn.0059a110
add eax, 0x1d
mov dword [ebp - 0x10], eax
mov eax, 0x6d3ecc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fd80
sub eax, edx
mov edx, dword [esi + 0x1e0]
imul edx, dword [esi + 0x1dc]
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1d8]
lea eax, [ebp - 0x14]
push edx
push eax
push ecx
push 0x6d3ecc
push 0
mov ecx, 0x603a40
call fcn.004ad3f0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00599821
mov esp, ebp
pop ebp
ret