Function at 0x405440
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415362
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 0x405650
lea eax, [ebp - 0x14]
push eax
call fcn.00405c60
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jl 0x40562a
push 0x418a78
push eax
call fcn.00408d6e
add esp, 8
cmp eax, ebx
je 0x40562a
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x40562a
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 0x4055e3
push str.ShellStormPlayerProcess_9b7e2c17_b20e_4fa5_ac97_b296299d51af
push ebx
push 0xf001f
call edi
cmp eax, ebx
jne 0x4055e3
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 0x4055e3
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.00404e90
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x40552d
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.00404740
test al, al
jne 0x405577
lea eax, [ebp - 0x38]
call fcn.00404ac0
cmp dword [ebp - 0x18], ebx
je 0x4055cf
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 0x4055cf
push str.RealStormPlayerProcess_5ac1601b_e785_4064_8686_fe44dc76907b
push ebx
push 0xf001f
call edi
mov esi, eax
cmp esi, ebx
jne 0x4055b5
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x1c]
jmp 0x405588
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
push str._SHELL__StormPlayer_NULL_APP_exit_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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 0x405614
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 0x405650
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