Function at 0x409e70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5679e5
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 0x409eae
lea ecx, [esi - 4]
call fcn.00412690
test eax, eax
je 0x40a1d9
mov eax, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [ebp + 8], 0x5ed920
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov dword [ebp - 4], 0
test eax, eax
jne 0x409f29
mov eax, dword [0x5e5cb4]
test eax, eax
jne 0x409f29
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x409efe
push 0
mov ecx, eax
call fcn.00414650
jmp 0x409f00
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [ebp - 4], 0
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 [ebp - 4], 0xffffffff
call dword [edx + 8]
mov ecx, edi
call fcn.0047ef90
test al, al
je 0x409fed
mov eax, dword [0x5ed900]
mov ecx, 0x5ed900
mov dword [ebp + 8], ecx
call dword [eax + 4]
mov eax, dword [0x5e5d24]
mov ebx, 2
test eax, eax
mov dword [ebp - 4], ebx
jne 0x409fca
mov eax, dword [0x5e5d20]
test eax, eax
jne 0x409fca
push 0x450
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x409fa0
push 0
mov ecx, eax
call fcn.004146a0
jmp 0x409fa2
xor eax, eax
mov ecx, dword [0x5cefcc]
mov byte [ebp - 4], bl
push ecx
push 0x414670
mov ecx, 0x5eafa0
mov dword [0x5e5d20], eax
call fcn.00406600
mov dword [0x5e5d24], 1
mov edx, dword [0x5ed900]
mov edi, dword [0x5e5d20]
mov ecx, 0x5ed900
mov dword [ebp - 4], 0xffffffff
call dword [edx + 8]
push ebx
mov ecx, edi
call fcn.00411380
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 0x5e5cfc
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.0040d220
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 4
test eax, eax
jbe 0x40a1c7
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a07c
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.00406d70
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 0x40a0ce
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.0040ce40
test eax, eax
jl 0x40a1c7
mov eax, dword [esi + 8]
test eax, eax
je 0x40a46e
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x40a0fd
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 0x40a11e
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 [0x5e5ccc]
cmp ecx, eax
je 0x40a198
mov edx, dword [0x5e5cd0]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x40a196
mov edx, dword [0x5e5cd0]
push edx
push ecx
mov ecx, 0x5e5cc8
call fcn.00414530
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 0x40a1e3
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 0x40a493
mov eax, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [ebp + 0xc], ecx
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40a257
mov eax, dword [0x5e5cb4]
test eax, eax
jne 0x40a257
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 7
je 0x40a22c
push 0
mov ecx, eax
call fcn.00414650
jmp 0x40a22e
xor eax, eax
mov ecx, dword [0x5cebb0]
mov byte [ebp - 4], 6
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 byte [ebp - 4], 5
call dword [edx + 8]
mov ecx, edi
call fcn.0047ef90
test al, al
je 0x40a313
mov eax, dword [0x5ed900]
mov ecx, 0x5ed900
mov dword [ebp + 0xc], ecx
call dword [eax + 4]
mov eax, dword [0x5e5d24]
mov byte [ebp - 4], 8
test eax, eax
jne 0x40a2f2
mov eax, dword [0x5e5d20]
test eax, eax
jne 0x40a2f2
push 0x450
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 9
je 0x40a2c7
push 0
mov ecx, eax
call fcn.004146a0
jmp 0x40a2c9
xor eax, eax
mov ecx, dword [0x5cefcc]
mov byte [ebp - 4], 8
push ecx
push 0x414670
mov ecx, 0x5eafa0
mov dword [0x5e5d20], eax
call fcn.00406600
mov dword [0x5e5d24], 1
mov edx, dword [0x5ed900]
mov edi, dword [0x5e5d20]
mov ecx, 0x5ed900
mov byte [ebp - 4], 5
call dword [edx + 8]
push 3
mov ecx, edi
call fcn.00411380
mov ax, word [0x5e5cb0]
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.00410ec0
mov cx, word [0x5e5cb0]
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 0x40a399
xor edi, edi
jmp 0x40a3cc
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.005655c0
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.00413f00
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 0x40a491
mov al, byte [ecx - 1]
test al, al
je 0x40a487
cmp al, 0xff
je 0x40a487
dec al
mov byte [ecx - 1], al
jmp 0x40a491
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