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

Disassembly:
push 0xffffffffffffffff
push 0x552886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0x2dc], ebx
mov eax, dword [0x5cb060]
mov ecx, dword [0x5cb05c]
push eax
push ecx
mov ecx, 0x5cb058
call fcn.00414030
or eax, 0xffffffff
lea edx, [esp + 0x2c]
mov ecx, dword [esi]
mov dword [esp + 0x24], eax
push edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x2c]
push edx
push eax
push esi
call dword [ecx + 0x40]
mov eax, dword [0x5d2ac0]
mov ebp, 0x5d2ac0
mov ecx, ebp
mov dword [esp + 0x18], ebp
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov dword [esp + 0x13c], ebx
cmp eax, ebx
jne 0x40c4b8
cmp dword [0x5cb044], ebx
jne 0x40c4b8
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x13c], 1
je 0x40c48a
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x40c48c
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x13c], bl
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, ebp
mov dword [esp + 0x13c], 0xffffffff
call dword [edx + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push 2
push edi
call dword [eax + 0x104]
mov edx, dword [esi]
push ebx
push str.bufferend
push esi
call dword [edx + 0x34]
mov eax, dword [0x5d2ac0]
mov ecx, ebp
mov dword [esp + 0x18], ebp
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov dword [esp + 0x13c], 2
cmp eax, ebx
jne 0x40c570
cmp dword [0x5cb044], ebx
jne 0x40c570
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x13c], 3
je 0x40c541
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x40c543
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x13c], 2
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, ebp
mov dword [esp + 0x13c], 0xffffffff
call dword [edx + 8]
mov ecx, edi
call fcn.00478390
test al, al
je 0x40c5a0
push 7
mov ecx, esi
call fcn.004111d0
lea edi, [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0x80004005
jne 0x40c6d0
cmp dword [esi + 0x2c], ebx
je 0x40c6d0
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x1c], ecx
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov dword [esp + 0x13c], 4
cmp eax, ebx
jne 0x40c650
cmp dword [0x5cb044], ebx
jne 0x40c650
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x13c], 5
je 0x40c621
push ebx
mov ecx, eax
call fcn.00414150
jmp 0x40c623
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x13c], 4
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], eax
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov dword [esp + 0x13c], 0xffffffff
call dword [edx + 8]
mov ecx, edi
call fcn.00477e10
test eax, eax
je 0x40c6d0
mov ax, word [0x5cb040]
mov ecx, 0x40
mov word [esp + 0x30], ax
xor eax, eax
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
lea ecx, [esp + 0x30]
push eax
push str.http:__nclog.p2p.baofeng.net_mplay.php
push str._s__recurl0rectime_d
push 0x104
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00410d10
mov edi, dword [0x5cb0b8]
cmp edi, ebx
je 0x40c6fe
mov eax, dword [edi + 0x2d4]
cmp eax, ebx
jl 0x40c6ec
push eax
mov ecx, edi
call fcn.00486020
mov eax, dword [esi + 0x2d8]
cmp eax, ebx
jl 0x40c6fe
push eax
mov ecx, edi
call fcn.00486020
cmp dword [esi + 0x44], ebx
jne 0x40c76c
cmp dword [esi + 0x40], ebx
jbe 0x40c76c
mov ax, word [0x5cb040]
mov ecx, 0x40
mov word [esp + 0x30], ax
xor eax, eax
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x40]
cmp eax, 0x1388
jbe 0x40c76c
push str.http:__nclog.p2p.baofeng.net_mplay.php
push str._s__p2peffvv1
lea ecx, [esp + 0x38]
push 0x104
push ecx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], 1
call ebp
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00410d10
lea ebp, [esi + 0x54]
mov dword [esi + 0x40], ebx
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 4]
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esi + 0x184]
rep stosd dword es:[edi], eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x50], ebx
mov eax, dword [esi + 0x2c8]
push eax
call edi
push 0x5cb08c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x2c8], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov dword [esi + 0x2cc], ebx
je 0x40c860
cmp dword [esi + 0x30], ebx
jne 0x40c860
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40c860
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call ebp
test eax, eax
je 0x40c860
cmp dword [esi + 0x2c], ebx
jne 0x40c7fe
mov eax, 0x80004005
jmp 0x40c8f6
cmp dword [esp + 0x144], ebx
je 0x40c81a
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40c81a
push eax
call ebp
test eax, eax
je 0x40c81a
mov ecx, dword [esi + 0x18]
jmp 0x40c82b
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40c839
push eax
call ebp
test eax, eax
je 0x40c839
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0xc]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x64]
mov dword [esp + 0x18], eax
mov dword [esi + 0x30], 1
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x18]
push eax
call edi
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov eax, 0xbf800000
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [0x5cb0b8]
mov dword [esp + 0x13c], 6
cmp ecx, ebx
je 0x40c8dd
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc0]
test eax, eax
jl 0x40c8d9
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40c8dd
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x40c8d9
cmp dword [esp + 0x20], ebx
jle 0x40c8d9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
test eax, eax
jl 0x40c8d9
mov eax, dword [esp + 0x10]
mov ecx, dword [0x5cb0b8]
push eax
call fcn.00486020
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x13c], 0xffffffff
je 0x40c8f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 4