Function at 0x414510
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x438eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
mov ebx, dword [esp + 0x248]
mov ebp, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
call fcn.00415080
xor eax, eax
lea esi, [ebp + 0x20c]
mov dword [ebp], vtable.CRunStormStrategy.0
mov ecx, 7
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov dword [esp + 0x240], eax
mov word [esi + 4], ax
mov dword [ebp + 0x240], ecx
mov dword [ebp + 0x23c], eax
mov word [ebp + 0x22c], ax
push 0x208
push eax
lea edi, [ebp + 4]
push edi
mov byte [esp + 0x24c], 2
call fcn.00422b60
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4145df
push 0x43c500
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0xb
push ebx
push str.StormBox:__
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x41466d
push 0xc
push ebx
push str.AlbumInfo:__
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x41466d
push 1
push 0x43c4fc
mov ecx, esi
call fcn.00401ce0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414616
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004038c0
push 1
push 0x43c4fc
mov ecx, esi
call fcn.004038c0
push 0xd
push 0x43c564
mov ecx, esi
call fcn.004038c0
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414650
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, esi
call fcn.004038c0
jmp 0x4147ad
lea ecx, [esp + 0x2c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 0x2c]
push 0x43c560
push ecx
call fcn.00422f3b
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
je 0x4147f8
push ebx
lea ecx, [esp + 0x20]
call fcn.00408230
mov ebx, dword [esp + 0x1c]
xor eax, eax
cmp ebx, eax
mov byte [esp + 0x240], 3
je 0x4146f8
cmp dword [ebx + 4], eax
jne 0x4146d9
mov edx, dword [ebx]
push edx
call fcn.00413f50
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4146ef
mov ecx, dword [ebx]
push ecx
call fcn.00413f50
mov dword [ebx + 4], eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], edx
jmp 0x414700
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
add eax, 1
push eax
push ecx
call fcn.00422de8
push ebx
call fcn.00422c52
add esp, 0x14
push 1
push 0x43c4fc
mov ecx, esi
call fcn.00401ce0
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414740
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.004038c0
push 1
push 0x43c4fc
mov ecx, esi
call fcn.004038c0
push 0x16
push str.__openboxfile_playnow
mov ecx, esi
call fcn.004038c0
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
jmp 0x414780
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414780
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004038c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 2
call fcn.004081e0
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4147f8
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4147c0
sub eax, edi
sar eax, 1
push eax
lea edi, [ebp + 0x228]
push edx
mov ecx, edi
call fcn.00401ce0
push 7
push 0x43c520
mov ecx, esi
call fcn.004038c0
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.004037b0
mov eax, ebp
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00420bdf
add esp, 0x230
ret 8