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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4275f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4361b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.TaskbarCreated
mov dword [ebx + 0x82c], eax
call esi
push str.BaofengPlatformMessage
mov dword [ebx + 0x808], eax
call esi
push str.BaofengPlatformCommandMessage
mov dword [ebx + 0x80c], eax
call esi
push str.BaofengPlatformTipManagerMessage
mov dword [ebx + 0x810], eax
call esi
mov esi, dword [sym.imp.crt.dll_Ordinal_94]
mov dword [ebx + 0x824], eax
mov eax, dword [ebx + 0x80c]
push 1
push eax
call esi
mov ecx, dword [ebx + 0x810]
push 1
push ecx
call esi
push 1
push 0x112
call esi
push 1
push 0x606
call esi
add esp, 0x20
mov esi, ebx
call fcn.00410800
push 0
push 0
push 0
push 1
push str.DAILY.SF_ACTIVE
call dword [sym.imp.crt.dll_Ordinal_59]
push 0
push 0
push 0
push 1
push str.DAILY.SF_OPEN
call dword [sym.imp.crt.dll_Ordinal_58]
add esp, 0x28
call edi
mov edx, dword [ebx + 4]
push 0
push 0xea60
add eax, 0x3e7
push eax
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebx + 0x87c], eax
call fcn.0041f600
mov edx, dword [0x43617c]
xor eax, eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [edx + 0xc]
mov ecx, 0x43617c
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x1a]
movzx eax, word [ebp - 0x1e]
movzx ecx, word [ebp - 0x20]
push edx
push eax
push ecx
push str._d._d._d
lea edi, [ebp - 0x24]
call fcn.0040d850
mov edx, dword [ebp - 0x24]
push 1
push edx
push str.PlatformRunDate
call dword [sym.imp.crt.dll_Ordinal_29]
add esp, 0x1c
lea ecx, [ebx + 0x848]
call fcn.00401040
cmp dword [0x437ffc], 0
mov eax, dword [ebx + 4]
lea edi, [ebx + 0x28]
mov dword [ebp - 0x28], eax
jne 0x40feba
push 0x42c490
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x437ffc], eax
mov ecx, dword [ebp - 0x28]
push edi
lea esi, [ebx + 0x198]
call fcn.0041e910
lea esi, [ebx + 0x18c]
cmp dword [ebx + 0x7ec], esi
je 0x40fefb
test esi, esi
je 0x40fee3
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [ebx + 0x7ec]
test eax, eax
je 0x40fef5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x7ec], esi
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x744]
call fcn.00417630
push str.BaofengUserCommandMessage
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [ebx + 0x188], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x437fd1], 0
mov dword [ebx + 0x818], eax
push 0
je 0x40ff45
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0x7d0
push eax
mov eax, dword [ebx + 4]
push eax
call edi
jmp 0x40ff5b
mov ecx, dword [ebx + 4]
push 0x4e20
push eax
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x437fc0], 0
mov dword [ebx + 0x81c], eax
je 0x40ff8f
push str.Event_Wait_Main_Frame_Created
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x40ffa9
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ffa9
mov eax, dword [0x437fb8]
test eax, eax
je 0x40ff9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x437fb8], 0
push 1
push 1
push str.FirstRunPlatform
call dword [sym.imp.crt.dll_Ordinal_23]
add esp, 0xc
test eax, eax
je 0x40ffdc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 4]
push 0
push 0x2710
add eax, 0x16
push eax
push edx
call edi
mov dword [ebx + 0x828], eax
push 0
push 0xffffffffffffffff
push 0x42ae80
call dword [sym.imp.crt.dll_Ordinal_25]
mov esi, eax
add esp, 0xc
cmp esi, 0x4e20
jae 0x40ffff
mov esi, 0x493e0
jmp 0x410004
cmp esi, 0xffffffff
je 0x41001d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
add eax, 2
push esi
push eax
mov eax, dword [ebx + 4]
push eax
call edi
mov dword [ebx + 0x854], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410043
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 ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042391e
mov esp, ebp
pop ebp
ret