Function at 0x40be80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x5d2ac0]
push ebx
push esi
push edi
mov ecx, 0x5d2ac0
mov dword [ebp - 0x1c], 0x5d2ac0
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov dword [ebp - 4], 0
test eax, eax
jne 0x40bf1c
mov eax, dword [0x5cb044]
test eax, eax
jne 0x40bf1c
push 0x380
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x40bef1
push 0
mov ecx, eax
call fcn.00414150
jmp 0x40bef3
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 esi, dword [0x5cb044]
or edi, 0xffffffff
mov ecx, 0x5d2ac0
mov dword [ebp - 4], edi
call dword [edx + 8]
mov ecx, esi
call fcn.00478390
test al, al
je 0x40bfdc
mov eax, dword [0x5d2aa0]
mov ecx, 0x5d2aa0
mov dword [ebp - 0x1c], ecx
call dword [eax + 4]
mov eax, dword [0x5cb0b4]
mov ebx, 2
test eax, eax
mov dword [ebp - 4], ebx
jne 0x40bfbc
mov eax, dword [0x5cb0b0]
test eax, eax
jne 0x40bfbc
push 0x448
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x40bf92
push 0
mov ecx, eax
call fcn.004141a0
jmp 0x40bf94
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 esi, dword [0x5cb0b0]
mov ecx, 0x5d2aa0
mov dword [ebp - 4], edi
call dword [edx + 8]
push 4
mov ecx, esi
call fcn.004111d0
mov ebx, dword [ebp + 8]
push str._STORMP2P__OnPlayUrl_begin
mov dword [ebx + 0x34], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx + 0x54]
lea esi, [ebx + 0x54]
mov ecx, esi
mov dword [ebp - 0x1c], esi
call dword [eax + 4]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 4], 4
test eax, eax
je 0x40c021
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 4], edi
call dword [edx + 8]
mov eax, 1
jmp 0x40c32f
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2cc], 3
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x24], eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
xor edi, edi
cmp eax, edi
mov byte [ebp - 4], 5
jne 0x40c04d
mov dword [ebp - 0x10], edi
jmp 0x40c053
push eax
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
cmp eax, edi
jne 0x40c05f
mov dword [ebp - 0x14], edi
jmp 0x40c065
push eax
call esi
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
lea edi, [ecx + 1]
push edi
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
lea esi, [edx + 1]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov edi, dword [ebp + 8]
mov edx, ecx
mov dword [ebp - 0x18], eax
xor eax, eax
add esp, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x18]
mov ecx, esi
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40c0bb
xor edi, edi
jmp 0x40c0ed
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00550140
mov eax, dword [ebp + 0xc]
mov edi, esp
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x10]
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x18]
test edi, edi
jne 0x40c10e
xor esi, esi
jmp 0x40c141
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
add eax, 3
and al, 0xfc
call fcn.00550140
mov eax, dword [ebp - 0x20]
mov esi, esp
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov edx, ecx
mov eax, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov esi, eax
test esi, esi
je 0x40c1cc
push esi
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str..fxv
push ecx
call edi
add esp, 8
test eax, eax
jne 0x40c18d
push str..mkv
jmp 0x40c1bd
mov edx, dword [ebp + 0xc]
push str..spv
push edx
call edi
add esp, 8
test eax, eax
jne 0x40c1a6
push str..rmvb
jmp 0x40c1bd
mov eax, dword [ebp + 0xc]
push str..pxv
push eax
call edi
add esp, 8
test eax, eax
jne 0x40c1c4
push str..mp4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov edx, ecx
lea edi, [ebx + 0x80]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x18]
test edi, edi
jne 0x40c1f1
xor esi, esi
jmp 0x40c224
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x20], eax
add eax, 3
and al, 0xfc
call fcn.00550140
mov eax, dword [ebp - 0x20]
mov esi, esp
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x14]
lea edi, [ebx + 0x184]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x128]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x5cb040]
mov ecx, 0x40
mov word [ebp - 0x128], ax
xor eax, eax
lea edi, [ebp - 0x126]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
mov edi, dword [ebp - 0x18]
push edi
push ecx
push str._STORMP2P__OnPlayUrl__s___s_
push 0x104
push edx
call esi
add esp, 0x14
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.004bbc90
test eax, eax
je 0x40c296
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp + 8]
push edi
push ecx
push 0x860
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dx, word [0x5cb040]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x22a]
mov word [ebp - 0x22c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x3c]
push eax
push str.http:__nclog.p2p.baofeng.net_mplay.php
push str._s__recurl1rectime_d
lea eax, [ebp - 0x22c]
push 0x104
push eax
call esi
add esp, 0x10
lea edx, [ebp - 0x22c]
mov ecx, esp
mov dword [ebp + 8], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00410d10
mov eax, dword [ebx + 0x2bc]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ecx]
call dword [edx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x238]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8