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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x23], edi
push edi
jne 0x54dbaf
push 0x5fe7d8
jmp 0x54dbb4
push 0x60687c
call dword [eax + 0x20]
push edi
push 0x64
push edi
push edi
push dword [ebp + 0xc]
call fcn.0054daae
fstp qword [ebp - 0x94]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b]
mov eax, dword [eax + 0x5f]
mov ecx, eax
cmp ecx, edi
mov dword [ebp - 0x38], eax
mov edx, esi
jl 0x54dbfe
jg 0x54dbe3
cmp edx, edi
jbe 0x54dbfe
mov eax, dword [ebx + 0x14]
cmp eax, edi
jle 0x54dbf6
push ecx
push edx
cdq
push edx
push eax
call fcn.00436ac0
jmp 0x54dc08
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
jmp 0x54dc0e
mov eax, dword [ebx + 0x14]
cmp eax, edi
jg 0x54dc07
xor eax, eax
cdq
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x30]
je 0x54dc4a
cmp esi, 0x7fffffff
mov eax, dword [ebp - 0x38]
jne 0x54dc25
cmp eax, edi
je 0x54dc4a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov byte [ebp - 5], 0
call dword [eax + 0x2c]
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov byte [ebp - 6], 0
je 0x54dc58
mov al, byte [eax + 8]
mov byte [ebp + 0x13], al
jmp 0x54dc5c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov byte [ebp - 5], 1
call dword [eax + 0x28]
jmp 0x54dc31
mov byte [ebp + 0x13], 1
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x54dc6b
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
jmp 0x54dc72
mov dword [ebp - 0x18], 0xac44
push dword [ebp - 0x18]
mov dword [ebp - 0x24], edi
push edi
push edi
mov dword [ebp - 0x20], edi
call fcn.0050a174
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push edi
push 0x1f4
mov dword [ebp - 0x10], edx
call fcn.0050a174
mov dword [ebp - 0x3c], eax
movzx eax, byte [ebp + 0x13]
shl eax, 0xd
lea esi, [ebp - 0xc]
mov dword [ebp - 0x38], edx
call fcn.00435451
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x60], edi
mov dword [esi], edi
call fcn.005280ec
lea eax, [ebp - 0x1c4]
call fcn.005280ec
lea eax, [ebp - 0x8c]
call fcn.00407424
mov al, byte [ebx + 0x30]
neg al
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
sbb eax, eax
and eax, 0xffffff9b
add eax, 0x64
cmp dword [esi], edi
mov dword [ebp - 0x50], eax
jne 0x54e265
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x54e183
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x54e18e
cmp dword [ebp - 0x1c], 0x12c
jae 0x54e199
mov byte [ebp + 0x13], al
lea esi, [ebx + 0xc]
mov eax, esi
call fcn.00405d4e
test al, al
jne 0x54de03
mov ecx, dword [esi]
cmp ecx, edi
je 0x54dd41
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x54dd43
xor al, al
test al, al
jne 0x54dd54
call fcn.00405d62
test al, al
jne 0x54de03
mov esi, ebx
call fcn.0054da71
cdq
cmp edx, edi
jl 0x54dd8b
jg 0x54dd66
cmp eax, edi
jbe 0x54dd8b
mov byte [ebp + 0x13], 1
mov dword [ebp - 0x1c], edi
cmp edx, edi
jl 0x54dd91
jg 0x54dd77
cmp eax, edi
jbe 0x54dd91
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push edx
push eax
call fcn.00436ac0
mov edi, eax
mov dword [ebp - 0x58], edx
jmp 0x54dd96
mov byte [ebp + 0x13], 0
jmp 0x54dd6d
xor edi, edi
mov dword [ebp - 0x58], edi
add dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x58]
adc dword [ebp - 0x10], eax
jmp 0x54dde4
push 0
push 0x2000
push dword [ebp - 0x58]
push edi
call fcn.00436ac0
mov esi, eax
test esi, esi
jle 0x54ddef
mov ecx, dword [ebx + 0xc]
test ecx, ecx
push esi
push dword [ebp - 0xc]
je 0x54ddc9
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x54ddd0
mov al, 1
call fcn.0040263e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
push dword [ebp - 0xc]
call dword [eax + 4]
mov eax, esi
cdq
sub edi, eax
sbb dword [ebp - 0x58], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x54dda1
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0050a10e
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x164]
call fcn.004b6a42
jmp 0x54e0c9
xor edi, edi
cmp dword [ebx + 0x23], edi
jne 0x54df8f
cmp byte [ebp + 0x13], 0
je 0x54de40
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jg 0x54e13b
jl 0x54de82
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x24]
jae 0x54e13b
jmp 0x54de82
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
je 0x54de52
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
mov esi, edx
jmp 0x54de54
xor esi, esi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x54de62
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x54de66
xor eax, eax
xor edx, edx
sub edi, eax
sbb esi, edx
mov dword [ebp - 0x98], esi
js 0x54de7e
jg 0x54de78
test edi, edi
jbe 0x54de7e
mov byte [ebp + 0x13], 1
jmp 0x54de82
mov byte [ebp + 0x13], 0
push dword [ebp - 0x50]
fld qword [ebp - 0x94]
mov esi, dword [ebp + 0xc]
fstp qword [ebp - 0xac]
fldz
mov ecx, dword [ebx]
lea edx, [ebp - 0x114]
fstp qword [ebp - 0xa4]
push edx
lea edx, [ebp - 0xb4]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], 0x5c8684
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
test al, al
je 0x54e0da
mov eax, dword [ebp - 0xc7]
mov ecx, dword [ebp - 0xc3]
and dword [ebp - 0x1c], 0
cmp byte [ebp - 6], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
jne 0x54df72
mov byte [ebp - 6], 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x48], ecx
lea ecx, [eax + 5]
mov eax, dword [ecx]
cmp dword [ebp - 0x114], eax
je 0x54df45
lea eax, [ebp - 0x201]
call fcn.004074fe
mov esi, eax
lea eax, [ebp - 0x164]
call fcn.004b7bc5
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x164]
call fcn.004b9d74
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004b7006
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x114]
push edx
call dword [eax + 0xc]
test al, al
je 0x54e11e
lea eax, [ebp - 0x114]
lea edi, [ebp - 0x1c4]
call fcn.005280fd
jmp 0x54e07e
cmp ecx, dword [ebp - 0x48]
jg 0x54def3
jl 0x54df86
cmp eax, dword [ebp - 0x4c]
ja 0x54def3
mov byte [ebx + 0x18], 1
jmp 0x54e0c9
push ecx
push ecx
mov eax, esp
push ecx
mov dword [eax], 1
mov dword [eax + 4], 0x3e8
push ecx
mov ecx, dword [ebp - 0x7c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 4], ecx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call fcn.004745ed
cmp byte [ebp + 0x13], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
je 0x54dfdf
cmp edx, dword [ebp - 0x20]
jg 0x54e13b
jl 0x54e021
cmp eax, dword [ebp - 0x24]
jae 0x54e13b
jmp 0x54e021
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
je 0x54dff1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
mov esi, edx
jmp 0x54dff3
xor esi, esi
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x54e001
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x54e005
xor eax, eax
xor edx, edx
sub edi, eax
sbb esi, edx
mov dword [ebp - 0x98], esi
js 0x54e01d
jg 0x54e017
test edi, edi
jbe 0x54e01d
mov byte [ebp + 0x13], 1
jmp 0x54e021
mov byte [ebp + 0x13], 0
mov ecx, dword [ebx + 0x23]
mov eax, dword [ecx]
lea edx, [ebp - 0x8c]
push edx
push 0
push 0xffffffffffffffff
call dword [eax + 0x10]
test al, al
je 0x54e157
mov eax, dword [ebx + 0x27]
lea edi, [ebp - 0x8c]
call fcn.0052b605
push ecx
push ecx
mov eax, esp
push ecx
mov dword [eax], 1
mov dword [eax + 4], 0x3e8
push ecx
mov ecx, dword [ebp - 0x7c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 4], ecx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call fcn.004745ed
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp eax, dword [ebp - 0x60]
jb 0x54e0ad
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp + 0xc]
call fcn.0054daae
fstp qword [ebp - 0x94]
call esi
add eax, 0x64
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x14]
test eax, eax
jle 0x54e0c9
cdq
cmp edx, dword [ebp - 0x40]
jl 0x54e157
jg 0x54e0c9
cmp eax, dword [ebp - 0x44]
jbe 0x54e157
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x54de13
jmp 0x54e13b
cmp byte [ebx + 0x30], 0
je 0x54e0ff
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x54e132
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
mov eax, dword [ebp + 8]
je 0x54e15a
mov dword [eax], 1
jmp 0x54e13b
mov eax, dword [ebx]
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x5f]
mov ecx, dword [eax + 0x5b]
jl 0x54e119
jg 0x54e113
cmp dword [ebp - 0x24], ecx
jb 0x54e119
cmp byte [ebx + 0x2f], 0
jne 0x54e157
inc dword [ebp - 0x1c]
jmp 0x54e13b
mov byte [ebx + 0x19], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
cmp al, 8
jne 0x54e132
mov byte [ebx + 0x1a], 1
mov eax, dword [ebp + 8]
mov dword [eax], 2
lea eax, [ebp - 0x164]
call fcn.004b6a8c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x54e168
xor edi, edi
mov esi, eax
jmp 0x54dcf5
mov eax, dword [ebp + 8]
and dword [eax], 0
lea eax, [ebp - 0x164]
call fcn.004b6a8c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x54e265
xor edi, edi
cmp dword [ebx + 0x23], edi
jne 0x54e19d
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
jmp 0x54e1cb
mov dword [esi], 1
jmp 0x54e265
mov dword [esi], 2
jmp 0x54e265
mov dword [esi], edi
jmp 0x54e176
push ecx
push ecx
mov eax, esp
push ecx
mov dword [eax], 1
mov dword [eax + 4], 0x3e8
push ecx
mov ecx, dword [ebp - 0x7c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 4], ecx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call fcn.004745ed
push dword [ebp - 0x18]
push edx
push eax
call fcn.0050a174
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp + 0x10], edi
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
je 0x54e1ec
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x54e1ee
xor al, al
test al, al
jne 0x54e1fe
lea esi, [ebx + 0xc]
call fcn.00405d62
test al, al
jne 0x54e250
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x54e250
cmp byte [ebx + 0x2f], al
je 0x54e220
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x10], eax
jg 0x54e250
jl 0x54e220
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x14], eax
jae 0x54e250
mov esi, ebx
call fcn.0054da71
mov esi, eax
cmp esi, edi
jg 0x54e2e8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 0x1e
lea edx, [ebp - 0x50]
push edx
call dword [eax + 4]
cmp dword [eax], edi
jne 0x54e250
add dword [ebp + 0x10], 0x1e
cmp dword [ebp + 0x10], 0xbb8
jl 0x54e1de
cmp byte [ebp - 5], 0
jne 0x54e265
mov ecx, dword [ebp + 0xc]
fld1
mov eax, dword [ecx]
push ecx
push ecx
fstp qword [esp]
call dword [eax + 0x24]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x5b]
mov dword [ebx + 0x1b], ecx
mov eax, dword [eax + 0x5f]
mov dword [ebx + 0x1f], eax
lea eax, [ebx + 0xc]
call fcn.0050a497
lea esi, [ebx + 0x10]
call fcn.0050a292
mov esi, ebx
call fcn.00453c85
lea edi, [ebx + 4]
call fcn.004746f8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 1
push 0x5b07d8
call dword [eax + 0x20]
cmp byte [ebp - 5], 0
je 0x54e2b0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp - 0x68], 0
je 0x54e2bf
push dword [ebp - 0x68]
call fcn.0058f8c9
pop ecx
lea eax, [ebp - 0x1c4]
call fcn.004b6a8c
lea eax, [ebp - 0x114]
call fcn.004b6a8c
push dword [ebp - 0xc]
call fcn.0058f8c9
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, 0x2000
cmp esi, eax
mov dword [ebp + 0x10], edi
jl 0x54e2f6
mov esi, eax
mov ecx, dword [ebx + 0xc]
cmp ecx, edi
push esi
push dword [ebp - 0xc]
je 0x54e308
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x54e30f
mov al, 1
call fcn.0040263e
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
push dword [ebp - 0xc]
call dword [eax + 4]
mov eax, esi
cdq
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
jmp 0x54e1de