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

Disassembly:
push 0xffffffffffffffff
push 0x567d66
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 [0x5e5cd0]
mov ecx, dword [0x5e5ccc]
push eax
push ecx
mov ecx, 0x5e5cc8
call fcn.00414530
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 [0x5ed920]
mov ebp, 0x5ed920
mov ecx, ebp
mov dword [esp + 0x18], ebp
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov dword [esp + 0x13c], ebx
cmp eax, ebx
jne 0x40c768
cmp dword [0x5e5cb4], ebx
jne 0x40c768
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x13c], 1
je 0x40c73a
push ebx
mov ecx, eax
call fcn.00414650
jmp 0x40c73c
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x13c], bl
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov edi, dword [0x5e5cb4]
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 [0x5ed920]
mov ecx, ebp
mov dword [esp + 0x18], ebp
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov dword [esp + 0x13c], 2
cmp eax, ebx
jne 0x40c820
cmp dword [0x5e5cb4], ebx
jne 0x40c820
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x13c], 3
je 0x40c7f1
push ebx
mov ecx, eax
call fcn.00414650
jmp 0x40c7f3
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x13c], 2
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov edi, dword [0x5e5cb4]
mov ecx, ebp
mov dword [esp + 0x13c], 0xffffffff
call dword [edx + 8]
mov ecx, edi
call fcn.0047ef90
test al, al
je 0x40c850
push 7
mov ecx, esi
call fcn.00411380
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 0x40c980
cmp dword [esi + 0x2c], ebx
je 0x40c980
mov eax, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [esp + 0x1c], ecx
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov dword [esp + 0x13c], 4
cmp eax, ebx
jne 0x40c900
cmp dword [0x5e5cb4], ebx
jne 0x40c900
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x13c], 5
je 0x40c8d1
push ebx
mov ecx, eax
call fcn.00414650
jmp 0x40c8d3
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x13c], 4
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], eax
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov edi, dword [0x5e5cb4]
mov ecx, 0x5ed920
mov dword [esp + 0x13c], 0xffffffff
call dword [edx + 8]
mov ecx, edi
call fcn.0047ea10
test eax, eax
je 0x40c980
mov ax, word [0x5e5cb0]
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.00410ec0
mov edi, dword [0x5e5d28]
cmp edi, ebx
je 0x40c9ae
mov eax, dword [edi + 0x2d4]
cmp eax, ebx
jl 0x40c99c
push eax
mov ecx, edi
call fcn.0048cf80
mov eax, dword [esi + 0x2d8]
cmp eax, ebx
jl 0x40c9ae
push eax
mov ecx, edi
call fcn.0048cf80
cmp dword [esi + 0x44], ebx
jne 0x40ca1c
cmp dword [esi + 0x40], ebx
jbe 0x40ca1c
mov ax, word [0x5e5cb0]
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 0x40ca1c
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.00410ec0
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 0x5e5cfc
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 0x40cb10
cmp dword [esi + 0x30], ebx
jne 0x40cb10
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40cb10
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call ebp
test eax, eax
je 0x40cb10
cmp dword [esi + 0x2c], ebx
jne 0x40caae
mov eax, 0x80004005
jmp 0x40cba6
cmp dword [esp + 0x144], ebx
je 0x40caca
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x40caca
push eax
call ebp
test eax, eax
je 0x40caca
mov ecx, dword [esi + 0x18]
jmp 0x40cadb
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40cae9
push eax
call ebp
test eax, eax
je 0x40cae9
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 [0x5e5d28]
mov dword [esp + 0x13c], 6
cmp ecx, ebx
je 0x40cb8d
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 0x40cb89
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40cb8d
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x40cb89
cmp dword [esp + 0x20], ebx
jle 0x40cb89
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 0x40cb89
mov eax, dword [esp + 0x10]
mov ecx, dword [0x5e5d28]
push eax
call fcn.0048cf80
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x13c], 0xffffffff
je 0x40cba2
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