Function at 0x418610
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.004176f0
mov ecx, eax
call fcn.00417780
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx + 8], 0
jne 0x41867b
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0xbb
push 0x5b7b10
push 0x5b7b2c
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push str._CLS_PlayerPs::CreatePlayer__PsFile_Open_failed__file_s._n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 8
jmp 0x4188a7
mov ecx, dword [ebp - 0x18]
call fcn.00419510
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4186c8
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0xc2
push 0x5b7b7c
push 0x5b7b98
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push str._CLS_PlayerPs::CreatePlayer__InitPsGetVideoHeader_failed__file_s._n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 8
jmp 0x4188a7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
call fcn.004176f0
mov ecx, eax
call fcn.004177c0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
cmp dword [ebp - 0x14], 0
jge 0x41871c
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0xca
push 0x5b7bf4
push 0x5b7c10
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str._CLS_PlayerPs::CreatePlayer__File_GetStartTime_failed__file_s._n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call fcn.004176f0
mov ecx, eax
call fcn.004177e0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
cmp dword [ebp - 0x14], 0
jge 0x418770
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0xd0
push 0x5b7c6c
push 0x5b7c88
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str._CLS_PlayerPs::CreatePlayer__File_GetEndTime_failed__file_s._n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x70]
sub edx, dword [ecx + 0x68]
mov eax, dword [eax + 0x74]
sbb eax, dword [ecx + 0x6c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0xc]
test edx, edx
jle 0x4187bc
cmp dword [ebp - 0xc], 0
ja 0x41879f
cmp dword [ebp - 0x10], 0
jbe 0x4187bc
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
cdq
push edx
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0045e480
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x60], eax
push 0x58
mov edx, dword [ebp - 0x18]
add edx, 0xc
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004167c0
mov ecx, eax
call fcn.00416c20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x41881a
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0xdd
push 0x5b7cdc
push 0x5b7cf8
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push str._CLS_PlayerPs::CreatePlayer__TC_CreatePlayerFromVoD_failed__file_s._n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 8
jmp 0x4188a7
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x80], 1
mov eax, dword [ebp - 0x18]
add eax, 0x7c
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
push 0x4180b0
push 0
push 0
call fcn.004548f5
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x78], 0
jne 0x418898
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0xe6
push 0x5b7d58
push 0x5b7d74
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push str._CLS_PlayerPs::CreatePlayer___beginthreadex_failed__file_s._n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 8
jmp 0x4188a7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8