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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426138
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.TaskbarCreated
mov dword [esi + 0x630], eax
call ebx
push str.BaofengPlatformMessage
mov dword [esi + 0x5fc], eax
call ebx
push str.BaofengPlatformCommandMessage
mov dword [esi + 0x600], eax
call ebx
push str.BaofengPlatformTipManagerMessage
mov dword [esi + 0x604], eax
call ebx
mov edi, dword [sym.imp.crt.dll_Ordinal_94]
mov dword [esi + 0x62c], eax
mov eax, dword [esi + 0x600]
push 1
push eax
call edi
mov ecx, dword [esi + 0x604]
push 1
push ecx
call edi
push 1
push 0x112
call edi
push 1
push 0x606
call edi
add esp, 0x20
call fcn.0040fba0
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]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [0x43517c]
mov word [ebp - 0x20], dx
mov edx, dword [eax + 0xc]
add esp, 0x28
mov ecx, 0x43517c
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1e]
movzx eax, word [ebp - 0x20]
push ecx
push edx
push eax
push str._d._d._d
lea edi, [ebp - 0x24]
call fcn.0040d790
mov ecx, dword [ebp - 0x24]
push 1
push ecx
push str.PlatformRunDate
call dword [sym.imp.crt.dll_Ordinal_29]
add esp, 0x1c
lea ecx, [esi + 0x64c]
call fcn.00401040
lea edi, [esi + 0x184]
cmp dword [esi + 0x5f0], edi
je 0x40f49a
test edi, edi
je 0x40f482
mov edx, dword [edi]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esi + 0x5f0]
test eax, eax
je 0x40f494
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x5f0], edi
mov eax, dword [esi + 4]
lea edi, [esi + 0x28]
lea ecx, [esi + 0x554]
call fcn.00416760
push str.BaofengUserCommandMessage
call ebx
mov dword [esi + 0x180], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x436fad], 0
mov edi, dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x60c], eax
push 0
je 0x40f4e1
push 0x7d0
push eax
mov eax, dword [esi + 4]
push eax
jmp 0x40f4eb
mov ecx, dword [esi + 4]
push 0x4e20
push eax
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push 0x7530
push 0x7d0
push edx
mov dword [esi + 0x610], eax
call edi
cmp dword [0x436f9c], 0
mov dword [esi + 0x618], eax
je 0x40f539
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 0x40f553
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f553
mov eax, dword [0x436f94]
test eax, eax
je 0x40f549
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x436f94], 0
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 0x40f579
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret