Function at 0x4838b0
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5742fc
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 0x4838e2
mov eax, 0x80004005
jmp 0x48406f
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebx + 0x100]
push eax
call fcn.0045d8c0
lea ecx, [ebp - 0x4c]
mov dword [ebx + 0xd8], 1
call fcn.0054c1a0
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 0x483b53
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 0x483944
push edi
mov ecx, eax
call fcn.00412a10
jmp 0x483946
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x483960
push 0x8007000e
call fcn.00565a92
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 2
je 0x48396f
call fcn.00412aa0
jmp 0x483971
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0054c840
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
call fcn.00412980
mov al, byte [ebp - 0xd]
test al, al
je 0x483b53
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 0x4839b5
push edi
mov ecx, eax
call fcn.00412a10
jmp 0x4839b7
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x4839d1
push 0x8007000e
call fcn.00565a92
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 4
je 0x4839e0
call fcn.00412aa0
jmp 0x4839e2
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0054cda0
test al, al
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
sete byte [ebp - 0xd]
call fcn.00412980
mov al, byte [ebp - 0xd]
test al, al
je 0x483b53
mov eax, dword [ebx + 0xc4]
lea edi, [ebx + 0xc4]
test eax, eax
jne 0x483a2b
push edi
call fcn.005272a0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x48405e
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 0x483aee
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x483aee
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x483a78
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 0x483aad
push 0xa
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x48404d
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 0x483720
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebx + 0xb4], eax
je 0x483ad4
mov byte [ebp + 0xb], 1
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x483ae7
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 0x483b39
push 0xffffffffffffffff
push 0x5e5830
call fcn.00406d70
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 0x48404d
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
test eax, eax
je 0x48405e
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x48405e
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 0x483b9a
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 0x483b9c
test edi, edi
je 0x483b9c
push 0x8007000e
call fcn.00565a92
jmp 0x483b9c
xor esi, esi
test esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x18], esi
jne 0x483bb1
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [ebp - 4], 8
je 0x483bc2
mov ecx, esi
call fcn.00412aa0
jmp 0x483bc4
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0054cda0
test esi, esi
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
je 0x483bdf
mov ecx, esi
call fcn.00412a50
mov al, byte [ebp - 0xd]
test al, al
je 0x48401d
mov cx, word [0x5e5cb0]
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 0x483c17
xor esi, esi
jmp 0x483c49
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.005655c0
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 0x483cc2
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 0x483cc4
test edi, edi
je 0x483cc4
push 0x8007000e
call fcn.00565a92
jmp 0x483cc4
xor esi, esi
test esi, esi
mov byte [ebp - 4], 0
mov dword [ebp + 8], esi
jne 0x483cd9
push 0x8007000e
call fcn.00565a92
test esi, esi
mov byte [ebp - 4], 0xa
je 0x483cea
mov ecx, esi
call fcn.00412aa0
jmp 0x483cec
xor eax, eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0054c510
test esi, esi
mov byte [ebp - 4], 0
je 0x483d04
mov ecx, esi
call fcn.00412a50
lea ecx, [ebp - 0x4c]
call fcn.0054cdf0
test al, al
je 0x48405e
lea ecx, [ebp - 0x2c]
mov byte [ebx + 0x358], 0
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0054db30
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 0xb
call fcn.0054d710
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp eax, esi
je 0x483fc1
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x483d50
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.00406d70
add esp, 8
mov dword [ebp + 8], eax
mov edi, dword [ebp - 0x58]
cmp edi, esi
jne 0x483d6b
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 0x483d9d
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 [0x5ed820]
mov ecx, 0x5ed820
mov byte [ebp - 4], 0xe
mov edi, dword [eax]
mov dword [ebp - 0x18], ecx
call dword [edx + 4]
mov eax, dword [0x5eaaf4]
mov byte [ebp - 4], 0xf
test eax, eax
jne 0x483e18
mov eax, dword [0x5eaaf0]
test eax, eax
jne 0x483e18
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 0x10
je 0x483dee
mov ecx, eax
call fcn.00406460
jmp 0x483df0
xor eax, eax
mov dword [0x5eaaf0], eax
mov eax, dword [0x5d9028]
push eax
push 0x487750
mov ecx, 0x5eafa0
mov byte [ebp - 4], 0xf
call fcn.00406600
mov dword [0x5eaaf4], 1
mov edx, dword [0x5ed820]
mov esi, dword [0x5eaaf0]
mov ecx, 0x5ed820
mov byte [ebp - 4], 0xe
call dword [edx + 8]
push edi
mov ecx, esi
call fcn.004064b0
mov eax, dword [0x5ed900]
mov ecx, 0x5ed900
mov dword [ebp - 0x18], 0x5ed900
call dword [eax + 4]
mov eax, dword [0x5e5d24]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x483ebe
mov eax, dword [0x5e5d20]
test eax, eax
jne 0x483ebe
push 0x450
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 0x483e92
mov ecx, esi
call fcn.004072c0
mov dword [esi], vtable.CComObjectNoRef_class_CKMPP2PMngr_.1.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CKMPP2PMngr_.0
jmp 0x483e94
xor esi, esi
mov ecx, dword [0x5cefcc]
mov byte [ebp - 4], 0x11
push ecx
push 0x414670
mov ecx, 0x5eafa0
mov dword [0x5e5d20], esi
call fcn.00406600
mov dword [0x5e5d24], 1
mov edx, dword [0x5ed900]
mov esi, dword [0x5e5d20]
mov ecx, 0x5ed900
mov byte [ebp - 4], 0xe
call dword [edx + 8]
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
call fcn.0040cbd0
test eax, eax
jl 0x483fb0
mov cx, word [0x5e5cb0]
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 0x483f12
mov dword [ebp + 0xc], ebx
jmp 0x483f44
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.005655c0
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 0x483f4f
xor esi, esi
jmp 0x483f84
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.005655c0
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 0x483fe5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x483fdc
cmp al, 0xff
je 0x483fdc
dec al
mov byte [ecx], al
jmp 0x483fe5
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 0x484012
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x484009
cmp al, 0xff
je 0x484009
dec al
mov byte [ecx], al
jmp 0x484012
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 0x48405e
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x48405e
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.0054c260
mov eax, esi
jmp 0x48406f
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 0
test eax, eax
je 0x48405e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.0054c260
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