Function at 0x411ea0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562398
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5c9550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xb8]
call fcn.004146d0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xb8]
call fcn.004146b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
je 0x411f0f
cmp dword [ebp - 0x14], 0
je 0x411f0f
mov eax, dword [ebp - 0xb8]
cmp dword [eax + 0xf4], 0
jne 0x411f33
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0x98]
jmp 0x412316
mov cl, byte [0x5a375f]
mov byte [ebp - 0x7c], cl
push 0x57
push 0
lea edx, [ebp - 0x7b]
push edx
call fcn.004550c0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
call fcn.004778f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x411fcd
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040a800
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jl 0x411fa9
mov ecx, dword [ebp - 0x18]
call fcn.0040a700
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jge 0x411fa7
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0x9c]
jmp 0x412316
jmp 0x411fcd
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0xa0]
jmp 0x412316
cmp dword [0x5dbf90], 0
je 0x411fef
mov ecx, dword [0x5dbf90]
push ecx
call fcn.00453ad6
add esp, 4
mov dword [0x5dbf90], 0
mov edx, dword [ebp - 0xb8]
mov dword [edx + 0x514], 0
push 0x5b9de8
lea ecx, [ebp + 8]
call fcn.00414f20
push eax
push 0x5dbf90
call fcn.00453828
add esp, 0xc
push 0
push 0
mov eax, dword [0x5dbf90]
push eax
call fcn.0045454a
add esp, 0xc
mov ecx, dword [0x5dbf90]
push ecx
push 0x58
push 1
lea edx, [ebp - 0x7c]
push edx
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 0x20], 0xffffffff
cmp dword [ebp + 0x24], 2
jne 0x412077
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
push 0x58
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040aec0
mov dword [ebp - 0x20], eax
jmp 0x412184
cmp dword [ebp + 0x24], 3
jne 0x4120a4
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], 1
push 0x58
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040af60
mov dword [ebp - 0x20], eax
jmp 0x412184
cmp dword [ebp + 0x24], 4
jne 0x412184
push 0
push 0
mov edx, dword [0x5dbf90]
push edx
call fcn.0045454a
add esp, 0xc
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfc
mov eax, dword [ebp - 0xb8]
mov edx, dword [eax + 0xfc]
mov eax, dword [edx + 0x14c]
call eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfc
call fcn.0040a640
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 2
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp + 8]
call fcn.00414f20
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.00402590
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040b290
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0xa4]
jmp 0x412316
cmp dword [ebp - 0x20], 0
jl 0x4122cd
mov ecx, dword [ebp - 0x18]
call fcn.004778f0
mov dword [ebp - 0x8c], eax
cmp dword [ebp + 0x24], 2
jne 0x4121d5
push 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.0040af00
push 0x21
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040af00
push 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040af00
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040a770
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jl 0x41229d
mov ecx, dword [ebp - 0xb8]
call fcn.00414690
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x18]
call fcn.0040ab60
test eax, eax
sete cl
mov edx, dword [ebp - 0xb8]
add edx, dword [ebp - 0x94]
mov byte [edx + 0x189], cl
mov eax, dword [ebp - 0xb8]
add eax, dword [ebp - 0x94]
movzx ecx, byte [eax + 0x189]
push ecx
mov edx, dword [ebp - 0xb8]
mov ecx, dword [edx + 0xf4]
call fcn.004097d0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0xf4]
add ecx, 0xd0
call fcn.00415880
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040abe0
mov ecx, dword [ebp - 0xb8]
call fcn.0040f0c0
push 1
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx + 0xf4]
add ecx, 0x124
call fcn.00403e60
mov ecx, dword [ebp - 0xb8]
call fcn.0040fc90
jmp 0x4122cb
push str._TDPlayer_:PlayStreamFile_Play_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0xac]
jmp 0x412316
jmp 0x4122f8
push str._TDPlayer_:TDPlayerDlg_PlayStreamFile_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0xb0]
jmp 0x412316
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406260
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452910
mov esp, ebp
pop ebp
ret 0x20