Function at 0x47cca0
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e2ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x47ccd2
mov eax, 0x80004005
jmp 0x47d45f
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebx + 0x100]
push eax
call fcn.00457250
lea ecx, [ebp - 0x4c]
mov dword [ebx + 0xd8], 1
call fcn.00539870
mov ecx, dword [edi]
lea esi, [ebx + 0xbc]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
call dword [ecx + 0x1c]
test eax, eax
jl 0x47cf43
mov edi, dword [esi]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x47cd34
push edi
mov ecx, eax
call fcn.00412730
jmp 0x47cd36
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x47cd50
push 0x8007000e
call fcn.005505fa
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 2
je 0x47cd5f
call fcn.004127c0
jmp 0x47cd61
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.00539f10
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
call fcn.004126a0
mov al, byte [ebp - 0xd]
test al, al
je 0x47cf43
mov edi, dword [esi]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x47cda5
push edi
mov ecx, eax
call fcn.00412730
jmp 0x47cda7
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x47cdc1
push 0x8007000e
call fcn.005505fa
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 4
je 0x47cdd0
call fcn.004127c0
jmp 0x47cdd2
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0053a470
test al, al
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
sete byte [ebp - 0xd]
call fcn.004126a0
mov al, byte [ebp - 0xd]
test al, al
je 0x47cf43
mov eax, dword [ebx + 0xc4]
lea edi, [ebx + 0xc4]
test eax, eax
jne 0x47ce1b
push edi
call fcn.0051b660
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x47d44e
mov byte [ebp + 0xb], 0
mov dword [ebp + 0xc], 0
mov edx, dword [ebx]
lea eax, [ebp + 0xc]
push eax
push ebx
mov byte [ebp - 4], 5
call dword [edx + 0x9c]
test eax, eax
jl 0x47cede
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47cede
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x47ce68
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0xb0], eax
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x47ce9d
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x47d43d
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xb4], 0
lea eax, [ebx + 0xb8]
push eax
push 0
push ebx
push 0x47cb10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebx + 0xb4], eax
je 0x47cec4
mov byte [ebp + 0xb], 1
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47ced7
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x10c]
mov al, byte [ebp + 0xb]
test al, al
jne 0x47cf29
push 0xffffffffffffffff
push 0x5cabc0
call fcn.00406c60
mov esi, eax
add esp, 8
mov dword [ebp + 8], esi
mov eax, dword [edi]
push 0
push esi
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 6
call dword [ecx + 0x18]
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi]
mov byte [ebx + 0xc0], 0
mov ecx, dword [edx]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
test eax, eax
jge 0x47d43d
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
test eax, eax
je 0x47d44e
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x47d44e
mov eax, dword [ebp - 0x1c]
push 0xc
mov edi, dword [eax]
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
mov byte [ebp - 4], 7
je 0x47cf8a
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi], eax
jne 0x47cf8c
test edi, edi
je 0x47cf8c
push 0x8007000e
call fcn.005505fa
jmp 0x47cf8c
xor esi, esi
test esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
jne 0x47cfa1
push 0x8007000e
call fcn.005505fa
test esi, esi
mov byte [ebp - 4], 8
je 0x47cfb2
mov ecx, esi
call fcn.004127c0
jmp 0x47cfb4
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0053a470
test esi, esi
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
je 0x47cfcf
mov ecx, esi
call fcn.00412770
mov al, byte [ebp - 0xd]
test al, al
je 0x47d40d
mov cx, word [0x5cb040]
xor eax, eax
mov word [ebp - 0x160], cx
mov ecx, 0x40
lea edi, [ebp - 0x15e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebx + 0xbc]
test edi, edi
jne 0x47d007
xor esi, esi
jmp 0x47d039
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00550140
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
push esi
push str._STORMP2P__KMPPlayer::put_movie_URL__s__and_ResetPlayer_Status
lea edx, [ebp - 0x160]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [ebx + 0xbc]
lea eax, [ebx + 0xbc]
push 0xc
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 9
je 0x47d0b2
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [esi], eax
jne 0x47d0b4
test edi, edi
je 0x47d0b4
push 0x8007000e
call fcn.005505fa
jmp 0x47d0b4
xor esi, esi
test esi, esi
mov byte [ebp - 4], 0
mov dword [ebp + 8], esi
jne 0x47d0c9
push 0x8007000e
call fcn.005505fa
test esi, esi
mov byte [ebp - 4], 0xa
je 0x47d0da
mov ecx, esi
call fcn.004127c0
jmp 0x47d0dc
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.00539be0
test esi, esi
mov byte [ebp - 4], 0
je 0x47d0f4
mov ecx, esi
call fcn.00412770
lea ecx, [ebp - 0x4c]
call fcn.0053a4c0
test al, al
je 0x47d44e
lea ecx, [ebp - 0x2c]
mov byte [ebx + 0x358], 0
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0053b200
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 0xb
call fcn.0053ade0
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp eax, esi
je 0x47d3b1
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x47d140
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]
push 0xffffffffffffffff
push eax
call fcn.00406c60
add esp, 8
mov dword [ebp + 8], eax
mov edi, dword [ebp - 0x58]
cmp edi, esi
jne 0x47d15b
mov edi, 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]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
dec esi
push esi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x47d18d
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x5d29c0]
mov ecx, 0x5d29c0
mov byte [ebp - 4], 0xe
mov edi, dword [eax]
mov dword [ebp - 0x18], ecx
call dword [edx + 4]
mov eax, dword [0x5cfcfc]
mov byte [ebp - 4], 0xf
test eax, eax
jne 0x47d208
mov eax, dword [0x5cfcf8]
test eax, eax
jne 0x47d208
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x10
je 0x47d1de
mov ecx, eax
call fcn.00406360
jmp 0x47d1e0
xor eax, eax
mov dword [0x5cfcf8], eax
mov eax, dword [0x5be910]
push eax
push 0x480b10
mov ecx, 0x5d0190
mov byte [ebp - 4], 0xf
call fcn.00406500
mov dword [0x5cfcfc], 1
mov edx, dword [0x5d29c0]
mov esi, dword [0x5cfcf8]
mov ecx, 0x5d29c0
mov byte [ebp - 4], 0xe
call dword [edx + 8]
push edi
mov ecx, esi
call fcn.004063b0
mov eax, dword [0x5d2aa0]
mov ecx, 0x5d2aa0
mov dword [ebp - 0x18], 0x5d2aa0
call dword [eax + 4]
mov eax, dword [0x5cb0b4]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x47d2ae
mov eax, dword [0x5cb0b0]
test eax, eax
jne 0x47d2ae
push 0x448
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
mov byte [ebp - 4], 0x12
je 0x47d282
mov ecx, esi
call fcn.00407150
mov dword [esi], vtable.CComObjectNoRef_class_CKMPP2PMngr_.1.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CKMPP2PMngr_.0
jmp 0x47d284
xor esi, esi
mov ecx, dword [0x5b4fac]
mov byte [ebp - 4], 0x11
push ecx
push 0x414170
mov ecx, 0x5d0190
mov dword [0x5cb0b0], esi
call fcn.00406500
mov dword [0x5cb0b4], 1
mov edx, dword [0x5d2aa0]
mov esi, dword [0x5cb0b0]
mov ecx, 0x5d2aa0
mov byte [ebp - 4], 0xe
call dword [edx + 8]
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
call fcn.0040c920
test eax, eax
jl 0x47d3a0
mov cx, word [0x5cb040]
xor eax, eax
mov word [ebp - 0x264], cx
mov ecx, 0x40
lea edi, [ebp - 0x262]
rep stosd dword es:[edi], eax
test ebx, ebx
stosw word es:[edi], ax
jne 0x47d302
mov dword [ebp + 0xc], ebx
jmp 0x47d334
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00550140
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47d33f
xor esi, esi
jmp 0x47d374
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00550140
mov eax, dword [ebp + 8]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x264]
push ecx
push esi
push str._P2PINSERTAD_SetPlayID__s___s__n
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov ecx, dword [ebp + 8]
push ecx
call esi
xor esi, esi
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x47d3d5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47d3cc
cmp al, 0xff
je 0x47d3cc
dec al
mov byte [ecx], al
jmp 0x47d3d5
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], esi
cmp eax, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
je 0x47d402
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x47d3f9
cmp al, 0xff
je 0x47d3f9
dec al
mov byte [ecx], al
jmp 0x47d402
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
jmp 0x47d44e
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47d44e
mov ecx, dword [ebp + 0xc]
mov byte [ebx + 0xc0], 0
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x104]
lea ecx, [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00539930
mov eax, esi
jmp 0x47d45f
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
test eax, eax
je 0x47d44e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00539930
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x270]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8