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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov ecx, 7
lea eax, [ebp - 0x20]
mov edx, dword [0x401240]
call fcn.004085a0
xor eax, eax
push ebp
push 0x54d4a9
push dword fs:[eax]
mov dword fs:[eax], esp
nop
cmp byte [0x56129c], 0
je 0x54cbc2
xor eax, eax
call fcn.0052ec38
mov byte [ebp - 0x21], 0
mov eax, dword [0x55a1b8]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x559dc8]
setae byte [eax]
xor edx, edx
push ebp
push 0x54d3ea
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x5612ac], 0
je 0x54cc00
mov dl, 1
mov eax, dword [0x5612ac]
call fcn.004f9520
cmp byte [0x56129a], 0
je 0x54cc6d
xor eax, eax
push ebp
push 0x54cc40
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5612a0], 0
jne 0x54cc2c
mov eax, 0x54d4c4
call fcn.004fa00c
jmp 0x54cc36
mov eax, dword [0x5612a0]
call fcn.004fa1f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54cc6d
mov eax, 0x54d52c
call fcn.004fa254
lea eax, [ebp - 0x2c]
mov ecx, dword [0x561284]
mov edx, 0x54d5a0
call fcn.00407c94
mov eax, dword [ebp - 0x2c]
call fcn.004fa254
lea eax, [ebp - 0x30]
mov ecx, dword [0x561288]
mov edx, 0x54d5e0
call fcn.00407c94
mov eax, dword [ebp - 0x30]
call fcn.004fa254
lea eax, [ebp - 0x38]
call fcn.004bc8c8
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x54d60c
call fcn.00407c94
mov eax, dword [ebp - 0x34]
call fcn.004fa254
call fcn.0052ed00
xor eax, eax
call fcn.0054c498
mov dword [0x561290], eax
mov dl, 1
mov eax, dword [0x54b728]
call fcn.004fe388
mov dword [0x559d78], eax
mov ecx, dword [0x561288]
mov edx, dword [0x561290]
mov eax, dword [0x559d78]
call fcn.00500fc8
lea ecx, [ebp - 0x3c]
mov eax, dword [0x559d78]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004f2c88
mov edx, dword [ebp - 0x3c]
mov eax, 0x561294
call fcn.004077c8
mov eax, dword [0x559d78]
test byte [eax + 0x1d], 0x20
je 0x54cd68
mov eax, dword [0x559ec8]
cmp byte [eax], 0
jne 0x54cd68
push 1
push 1
mov eax, dword [0x561294]
call fcn.00407854
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x2fc]
call fcn.00407854
mov ecx, 0x30
pop edx
call fcn.0052f5ec
call fcn.004171e4
mov eax, dword [0x559d78]
test byte [eax + 0x1d], 1
je 0x54cdab
call fcn.004bd994
test al, al
jne 0x54cdab
push 1
push 1
mov eax, dword [0x561294]
call fcn.00407854
push eax
mov eax, dword [0x55a2a4]
mov eax, dword [eax + 0x1dc]
call fcn.00407854
mov ecx, 0x30
pop edx
call fcn.0052f5ec
call fcn.004171e4
mov eax, dword [0x561290]
xor edx, edx
mov dword [0x561290], edx
call fcn.00405320
mov al, 2
call fcn.0054c498
mov dword [0x561290], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050900
mov dx, 0x20
mov eax, dword [0x559d78]
call fcn.004fe864
test al, al
jne 0x54cdf0
mov eax, 0x54d64c
call fcn.004f5114
cmp dword [0x5612ac], 0
je 0x54ce0b
lea eax, [ebp - 4]
mov edx, dword [0x55a160]
mov edx, dword [edx]
call fcn.00406658
jmp 0x54ce16
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.0054cb10
mov eax, dword [0x559d78]
cmp byte [eax + 0x10], 0
je 0x54ce3e
mov eax, dword [0x559ec8]
cmp byte [eax], 0
jne 0x54ce35
mov eax, 0x54d6e4
call fcn.004f5114
mov al, 1
call fcn.0052fae0
jmp 0x54ce45
xor eax, eax
call fcn.0052fae0
call fcn.0052cddc
cmp dword [ebp - 4], 0
je 0x54cf4d
call fcn.0052c7b4
call fcn.0052d118
mov eax, dword [0x559de4]
mov edx, dword [0x561284]
call fcn.004077c8
mov eax, dword [0x55a1fc]
mov edx, dword [0x559d78]
mov edx, dword [edx + 0x14]
call fcn.004077c8
movzx eax, byte [0x56129b]
or al, byte [0x56129c]
mov edx, dword [0x559f6c]
mov byte [edx], al
mov eax, dword [0x55a420]
mov edx, dword [ebp - 0x18]
call fcn.004077c8
mov eax, dword [0x55a09c]
mov edx, dword [ebp - 0x14]
call fcn.004077c8
mov eax, dword [0x559ee8]
mov edx, dword [ebp - 0x10]
call fcn.004077c8
mov eax, dword [0x559f98]
mov edx, dword [ebp - 0xc]
call fcn.004077c8
mov eax, dword [ebp - 8]
test eax, eax
je 0x54ced6
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.0054ca58
mov dl, 1
mov eax, dword [0x548e5c]
call fcn.00549a14
mov edx, dword [0x559fbc]
mov dword [edx], eax
mov eax, 0x52e6d8
mov edx, dword [0x559fbc]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x52e8f0
mov edx, dword [0x559fbc]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x52e8fc
mov edx, dword [0x559fbc]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x52e908
mov edx, dword [0x559fbc]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x55a060]
mov ecx, dword [ecx]
mov eax, dword [0x559fbc]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00549b0c
xor edx, edx
push ebp
push 0x54d396
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x54d2c9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x559fbc]
cmp dword [eax], 0
je 0x54cfdc
xor edx, edx
push ebp
push 0x54cfb0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 1
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x559fbc]
mov eax, dword [eax]
mov edx, 0x54d778
call fcn.00549ccc
pop dword fs:[0]
add esp, 8
jmp 0x54cfc9
test al, al
jne 0x54cfdc
mov eax, 0x54d808
call fcn.004fa254
call fcn.004171e4
cmp byte [0x56129b], 0
jne 0x54d016
cmp byte [0x56129c], 0
jne 0x54d016
push 0x124
push 1
push 6
mov eax, dword [0x559d78]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x561294]
mov al, 0x27
call fcn.0054bb9c
cmp eax, 6
je 0x54d016
call fcn.004171e4
xor edx, edx
xor eax, eax
call fcn.0054c308
jmp 0x54d044
push 0x31
push 1
push 2
mov eax, dword [0x559d78]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x561294]
mov al, 0xbd
call fcn.0054bb9c
dec eax
je 0x54d044
call fcn.004171e4
mov eax, dword [0x559d78]
call fcn.004fe8b8
test al, al
jne 0x54d021
jmp 0x54d067
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x55a294]
mov eax, dword [eax]
call fcn.004b96c8
mov eax, dword [0x55a4a0]
cmp byte [eax], 0
jne 0x54d054
mov eax, dword [0x559dc8]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x559d78]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004f2c88
mov edx, dword [ebp - 0x48]
mov eax, dword [0x55a294]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004be1fc
call fcn.0054b9dc
xor edx, edx
mov al, 1
call fcn.0054c308
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x559d78]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x54be24
mov dl, 1
mov eax, dword [0x559d78]
call fcn.004ff688
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x55a1ac]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x54d870
call fcn.004fa4d8
mov eax, dword [0x559d78]
cmp byte [eax + 0x1c], 0
jne 0x54d112
mov eax, dword [0x559d78]
test byte [eax + 0x1d], 8
jne 0x54d112
xor eax, eax
jmp 0x54d114
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x559fbc]
cmp dword [eax], 0
je 0x54d1b2
mov eax, dword [0x559fbc]
mov eax, dword [eax]
mov edx, 0x54d89c
call fcn.00549bb8
test al, al
je 0x54d1b2
cmp byte [ebp - 0x23], 0
jne 0x54d1a8
xor eax, eax
push ebp
push 0x54d18d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x559fbc]
mov eax, dword [eax]
mov edx, 0x54d89c
call fcn.00549ccc
test al, al
je 0x54d183
mov byte [ebp - 0x23], 1
mov eax, 0x54d8c0
call fcn.004fa254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d1b2
mov eax, 0x54d9a0
call fcn.004fa254
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x55a1ac]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x54da58
call fcn.004fa4d8
cmp byte [0x56129c], 0
jne 0x54d20d
mov eax, dword [0x55a294]
mov eax, dword [eax]
call fcn.004b96c8
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x54d20d
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x54d1de
mov eax, dword [0x559f00]
mov eax, dword [eax]
mov edx, dword [0x559f00]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00405320
mov dl, 1
mov al, 2
call fcn.0054c308
cmp byte [ebp - 0x23], 0
jne 0x54d26d
cmp byte [0x56129b], 0
jne 0x54d2b6
cmp byte [0x56129c], 0
jne 0x54d2b6
push 0x10040
push 1
push 1
mov eax, dword [0x559d78]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x559d84]
mov ecx, dword [0x561294]
call fcn.0054bb9c
jmp 0x54d2b6
cmp byte [0x56129d], 0
jne 0x54d2a6
cmp byte [0x56129c], 0
jne 0x54d2a2
push 0x10024
push 1
push 6
mov eax, dword [0x559d78]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x561294]
mov al, 0xbb
call fcn.0054bb9c
cmp eax, 6
jne 0x54d2a6
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x54d2b6
mov eax, 0x54da9c
call fcn.004fa254
mov dl, 1
mov al, 3
call fcn.0054c308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d2dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54d3a0
xor edx, edx
push ebp
push 0x54d318
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x559f00]
mov eax, dword [eax]
mov edx, dword [0x559f00]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00405320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d327
mov eax, dword [0x559fbc]
cmp dword [eax], 0
je 0x54d383
xor eax, eax
push ebp
push 0x54d36a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x559fbc]
mov eax, dword [eax]
mov edx, 0x54daf8
call fcn.00549c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54d383
mov eax, dword [0x55a294]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.004be28c
ret