Function at 0x409cf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552545
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x2a4]
test eax, eax
jne 0x409d2e
lea ecx, [esi - 4]
call fcn.004123b0
test eax, eax
je 0x40a059
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [ebp + 8], 0x5d2ac0
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov dword [ebp - 4], 0
test eax, eax
jne 0x409da9
mov eax, dword [0x5cb044]
test eax, eax
jne 0x409da9
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x409d7e
push 0
mov ecx, eax
call fcn.00414150
jmp 0x409d80
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [ebp - 4], 0
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 [ebp - 4], 0xffffffff
call dword [edx + 8]
mov ecx, edi
call fcn.00478390
test al, al
je 0x409e6d
mov eax, dword [0x5d2aa0]
mov ecx, 0x5d2aa0
mov dword [ebp + 8], ecx
call dword [eax + 4]
mov eax, dword [0x5cb0b4]
mov ebx, 2
test eax, eax
mov dword [ebp - 4], ebx
jne 0x409e4a
mov eax, dword [0x5cb0b0]
test eax, eax
jne 0x409e4a
push 0x448
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x409e20
push 0
mov ecx, eax
call fcn.004141a0
jmp 0x409e22
xor eax, eax
mov ecx, dword [0x5b4fac]
mov byte [ebp - 4], bl
push ecx
push 0x414170
mov ecx, 0x5d0190
mov dword [0x5cb0b0], eax
call fcn.00406500
mov dword [0x5cb0b4], 1
mov edx, dword [0x5d2aa0]
mov edi, dword [0x5cb0b0]
mov ecx, 0x5d2aa0
mov dword [ebp - 4], 0xffffffff
call dword [edx + 8]
push ebx
mov ecx, edi
call fcn.004111d0
lea ebx, [esi - 4]
mov eax, dword [ebx + 0x54]
lea ecx, [ebx + 0x54]
call dword [eax + 4]
mov ecx, 0x41
xor eax, eax
lea edi, [ebx + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebx + 0x184]
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x54]
lea ecx, [ebx + 0x54]
call dword [edx + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x50], 0
mov eax, dword [ebx + 0x2c8]
push eax
call edi
push 0x5cb08c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
push ecx
mov dword [ebx + 0x2c8], eax
push edx
mov ecx, ebx
mov dword [ebx + 0x2cc], 0
call fcn.0040d0e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 4
test eax, eax
jbe 0x40a047
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x409efc
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esi + 0x18]
mov dword [ebp + 8], eax
push ecx
call edi
mov edx, dword [ebp + 8]
push 0xffffffffffffffff
push edx
call fcn.00406c60
add esp, 8
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edi, [ebx + 0x54]
mov dword [esi + 0x20], eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 4]
mov eax, dword [ebx + 0x2c0]
test eax, eax
je 0x409f4e
push eax
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [ebx + 0x2c0], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, ebx
call fcn.0040cd00
test eax, eax
jl 0x40a047
mov eax, dword [esi + 8]
test eax, eax
je 0x40a2ee
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x409f7d
mov dword [esi + 0x4c], 0
mov ecx, dword [esi + 0x2b8]
push 0x1f4
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409f9e
push str._n_____
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 0x50]
lea edi, [esi + 0x50]
mov ecx, edi
mov dword [ebp + 8], edi
call dword [edx + 4]
mov eax, dword [esi + 0x14]
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x2c0], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x40], eax
mov ecx, dword [0x5cb05c]
cmp ecx, eax
je 0x40a018
mov edx, dword [0x5cb060]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x40a016
mov edx, dword [0x5cb060]
push edx
push ecx
mov ecx, 0x5cb058
call fcn.00414030
xor eax, eax
mov dword [esi + 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x60]
test eax, eax
jge 0x40a063
mov edx, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 4
call dword [edx + 8]
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, 0x80004005
jmp 0x40a313
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [ebp + 0xc], ecx
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40a0d7
mov eax, dword [0x5cb044]
test eax, eax
jne 0x40a0d7
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x40a0ac
push 0
mov ecx, eax
call fcn.00414150
jmp 0x40a0ae
xor eax, eax
mov ecx, dword [0x5b4b90]
mov byte [ebp - 4], 6
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 byte [ebp - 4], 5
call dword [edx + 8]
mov ecx, edi
call fcn.00478390
test al, al
je 0x40a193
mov eax, dword [0x5d2aa0]
mov ecx, 0x5d2aa0
mov dword [ebp + 0xc], ecx
call dword [eax + 4]
mov eax, dword [0x5cb0b4]
mov byte [ebp - 4], 8
test eax, eax
jne 0x40a172
mov eax, dword [0x5cb0b0]
test eax, eax
jne 0x40a172
push 0x448
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 9
je 0x40a147
push 0
mov ecx, eax
call fcn.004141a0
jmp 0x40a149
xor eax, eax
mov ecx, dword [0x5b4fac]
mov byte [ebp - 4], 8
push ecx
push 0x414170
mov ecx, 0x5d0190
mov dword [0x5cb0b0], eax
call fcn.00406500
mov dword [0x5cb0b4], 1
mov edx, dword [0x5d2aa0]
mov edi, dword [0x5cb0b0]
mov ecx, 0x5d2aa0
mov byte [ebp - 4], 5
call dword [edx + 8]
push 3
mov ecx, edi
call fcn.004111d0
mov ax, word [0x5cb040]
mov ecx, 0x40
mov word [ebp - 0x148], ax
xor eax, eax
lea edi, [ebp - 0x146]
lea edx, [ebp - 0x148]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x38]
stosw word es:[edi], ax
sub ecx, dword [esi + 0x3c]
push ecx
push str.http:__nclog.p2p.baofeng.net_mplay.php
push str._s__sendurl1sendurltime_d
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x148]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00410d10
mov cx, word [0x5cb040]
mov ebx, dword [esi + 0x18]
mov word [ebp - 0x24c], cx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24a]
rep stosd dword es:[edi], eax
test ebx, ebx
stosw word es:[edi], ax
jne 0x40a219
xor edi, edi
jmp 0x40a24c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp + 0xc], eax
add eax, 3
and al, 0xfc
call fcn.00550140
mov edx, dword [ebp + 0xc]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push str._STORMP2P__StreamShell_StartChannel___s__success
lea eax, [ebp - 0x24c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x2c8], 1
mov edx, dword [esi + 0x14]
xor edi, edi
push edx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x44], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x14]
push ecx
push edx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 0xa
call fcn.00413b40
mov esi, dword [eax]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x44]
add esi, 0x10
mov byte [ebp - 4], 4
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40a311
mov al, byte [ecx - 1]
test al, al
je 0x40a307
cmp al, 0xff
je 0x40a307
dec al
mov byte [ecx - 1], al
jmp 0x40a311
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x258]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc