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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415832
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp ecx, ebx
je 0x405755
lea eax, [ebp - 0x14]
push eax
call fcn.00405d00
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jl 0x40572f
push str.FromAST_5bc5a2dd_e474_4469_880c_0bd60774c726
push eax
call fcn.004090ce
add esp, 8
cmp eax, ebx
je 0x40572f
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x40572f
push str.RealStormPlayerProcess_5ac1601b_e785_4064_8686_fe44dc76907b
push ebx
push 0xf001f
mov edi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
call edi
cmp eax, ebx
jne 0x4056f3
push str.ShellStormPlayerProcess_9b7e2c17_b20e_4fa5_ac97_b296299d51af
push ebx
push 0xf001f
call edi
cmp eax, ebx
jne 0x4056f3
push str.ShellStormPlayerProcess_9b7e2c17_b20e_4fa5_ac97_b296299d51af
push 0x30
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4056f3
mov dword [ebp - 0x1c], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404e50
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x40563d
call dword [sym.imp.ole32.dll_CoUninitialize]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
push ebx
push ebx
push ebx
push 1
push str.DAILY.BF_KKRUN_ACTIVE
call dword [sym.imp.crt.dll_Ordinal_59]
add esp, 0x14
mov dword [ebp - 0x38], vtable.CRSHelper.0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 3
call fcn.00404700
test al, al
jne 0x405687
lea eax, [ebp - 0x38]
call fcn.00404a80
cmp dword [ebp - 0x18], ebx
je 0x4056df
mov esi, dword [ebp - 0x1c]
imul esi, esi, 0x3e8
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
cmp eax, esi
jae 0x4056df
push str.RealStormPlayerProcess_5ac1601b_e785_4064_8686_fe44dc76907b
push ebx
push 0xf001f
call edi
mov esi, eax
cmp esi, ebx
jne 0x4056c5
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x1c]
jmp 0x405698
push ebx
push ebx
push ebx
push 1
push str.DAILY.BF_KKKILL_ACTIVE
call dword [sym.imp.crt.dll_Ordinal_59]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], vtable.CRSHelper.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret