Function at 0x4118f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566a47
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0043dc32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41193a
push 0x80004005
call fcn.00403280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0
call fcn.0043dc32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41196d
push 0x80004005
call fcn.00403280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
mov byte [ebp - 4], 1
cmp dword [esi + 0x18], 0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
jle 0x411ba2
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov edx, dword [edx]
push ebx
push eax
add edx, 0x20
call fcn.00404b20
test eax, eax
jne 0x411a14
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
jle 0x411ba2
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
add eax, 0x20
push eax
call fcn.00405880
test eax, eax
je 0x4119a9
push 0x59bb58
lea ecx, [ebp - 0x224]
push str.___input_title_format__s_____subsdec_encodingCP949___freetype_fontNanumBarunGothic
push ecx
call fcn.00402a70
add esp, 0xc
cmp dword [esi + 0x18], 0
jle 0x411ba2
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
mov eax, dword [edx + 0x154]
test eax, eax
je 0x411b86
call fcn.0043dc32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411a8a
push 0x80004005
call fcn.00403280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x18], 0
jle 0x411ba2
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
cmp dword [eax + 0x158], 0x10
jb 0x411ac0
mov ebx, dword [eax + 0x144]
jmp 0x411ac6
lea ebx, [eax + 0x144]
test ebx, ebx
jne 0x411ace
xor eax, eax
jmp 0x411af8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x411ae4
xor eax, eax
jmp 0x411af8
lea eax, [edi + edi]
call fcn.0053b7a0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00406b30
push eax
lea ecx, [ebp - 0x21c]
push str._:sub_file__s_
push ecx
call fcn.00402a70
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.00401da0
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00402e40
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x18], 0
jle 0x411ba2
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
cmp dword [eax + 0xb4], 0x10
jb 0x411ba7
mov ebx, dword [eax + 0xa0]
jmp 0x411bad
call fcn.0043e97b
lea ebx, [eax + 0xa0]
test ebx, ebx
jne 0x411bb9
mov dword [ebp - 0x21c], ebx
jmp 0x411bf1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x411bd7
mov dword [ebp - 0x21c], 0
jmp 0x411bf1
lea eax, [edi + edi]
call fcn.0053b7a0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00406b30
mov dword [ebp - 0x21c], eax
cmp dword [esi + 0x18], 0
jle 0x411ba2
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
cmp dword [eax + 0xd0], 0x10
jb 0x411c0d
mov ebx, dword [eax + 0xbc]
jmp 0x411c13
lea ebx, [eax + 0xbc]
test ebx, ebx
jne 0x411c1f
mov dword [ebp - 0x22c], ebx
jmp 0x411c57
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x411c3d
mov dword [ebp - 0x22c], 0
jmp 0x411c57
lea eax, [edi + edi]
call fcn.0053b7a0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00406b30
mov dword [ebp - 0x22c], eax
cmp dword [esi + 0x18], 0
jle 0x411ba2
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
cmp dword [eax + 0x108], 0x10
jb 0x411c77
mov ebx, dword [eax + 0xf4]
jmp 0x411c7d
lea ebx, [eax + 0xf4]
test ebx, ebx
jne 0x411c89
mov dword [ebp - 0x220], ebx
jmp 0x411cc1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x411ca7
mov dword [ebp - 0x220], 0
jmp 0x411cc1
lea eax, [edi + edi]
call fcn.0053b7a0
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.00406b30
mov dword [ebp - 0x220], eax
cmp dword [esi + 0x18], 0
jle 0x411ba2
mov esi, dword [esi + 0x14]
mov eax, dword [esi]
cmp dword [eax + 0xec], 0x10
jb 0x411ce1
mov edi, dword [eax + 0xd8]
jmp 0x411ce7
lea edi, [eax + 0xd8]
test edi, edi
jne 0x411cef
xor eax, eax
jmp 0x411d19
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x411d05
xor eax, eax
jmp 0x411d19
lea eax, [esi + esi]
call fcn.0053b7a0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00406b30
mov ebx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x22c]
push ebx
push ecx
mov ecx, dword [ebp - 0x220]
push 0x7c4b
push edx
push ecx
push eax
lea edx, [ebp - 0x228]
push str.http:___s:_s__s:_d__httpstream_file_s__s
push edx
call fcn.00402a70
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00538700
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x2c
push 0
push 0x2a
lea edx, [ebp - 0x218]
push edx
push 0
call esi
cmp word [ebp - 0x218], 0
jne 0x411d98
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call esi
call fcn.0043dc32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411db2
push 0x80004005
call fcn.00403280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push str.vlc.exe
push str.pdpopxVLCApp_vlc
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push 0x59bcd8
push edx
mov byte [ebp - 4], 4
call fcn.00402a70
mov edi, dword [ebp - 0x228]
mov esi, dword [ebp - 0x220]
add esp, 0x14
push edi
push esi
call fcn.0042df10
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411e23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411e43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x4119d9