Function at 0x500550
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5a37ad
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x60aecc]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
mov edi, dword [esp + 0x250]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], eax
call fcn.00496d90
push str.publisher
lea ecx, [esp + 0x1c]
mov dword [esp + 0x244], 0
call fcn.00496da0
mov ebp, dword [0x614314]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, 0x614310
mov byte [esp + 0x248], 1
call fcn.004992d0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x5005f0
cmp eax, 0x614310
je 0x5005f5
call fcn.0055d776
cmp dword [esi + 4], ebp
lea ecx, [esp + 0x18]
sete bl
mov byte [esp + 0x240], 0
call fcn.00497320
test bl, bl
je 0x500623
push str.PlayFirst_
lea ecx, [esp + 0x20]
call fcn.00497d30
jmp 0x5006b4
push 0x5c7c58
lea ecx, [esp + 0x18]
call fcn.00496da0
push str.publisher
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 2
call fcn.00496da0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
mov bl, 3
push edx
mov ecx, 0x614310
mov byte [esp + 0x24c], bl
call fcn.00499a80
mov ecx, eax
call fcn.004974a0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x244], 4
call fcn.00497360
lea ecx, [esp + 0x20]
mov byte [esp + 0x240], bl
call fcn.00497320
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 2
call fcn.00497320
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0
call fcn.00497320
mov esi, dword [esp + 0x28]
test esi, esi
je 0x5008c9
test edi, edi
je 0x5008c9
cmp byte [esp + 0x248], 0
mov eax, 0x1a
je 0x5006dc
mov eax, 0x23
push 1
push eax
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x5008c9
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004ffec0
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 5
call fcn.00496ed0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00500070
add esp, 8
mov ecx, dword [esp + 0x254]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x244], 6
call fcn.00496ed0
push eax
push edi
call fcn.0055e0b0
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x500750
sub eax, edx
test eax, eax
jle 0x500784
lea ecx, [esp + 0x14]
call fcn.00496eb0
sub eax, 1
push eax
lea ecx, [esp + 0x18]
call fcn.00497240
cmp al, 0x5c
je 0x500784
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004985e0
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x500790
sub eax, edx
mov ebx, eax
mov eax, 0x5c7c58
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5007a5
sub eax, edx
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.00496eb0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.00496eb0
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, ebp
add esi, eax
add esi, ebx
cmp esi, dword [esp + 0x254]
jle 0x50081a
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 5
call fcn.00497320
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0
call fcn.00497320
lea ecx, [esp + 0x1c]
mov dword [esp + 0x240], 0xffffffff
call fcn.00497320
mov eax, esi
jmp 0x5008e0
lea ecx, [esp + 0x1c]
call fcn.00496ed0
push eax
lea ecx, [esp + 0x18]
call fcn.00496ed0
push eax
push str._s_s
push edi
call fcn.0055f1d9
add esp, 0x10
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.00496da0
call fcn.004fff40
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
add esp, 4
push eax
call esi
mov edx, dword [esp + 0x28]
push 0x5c7c58
push edx
push edi
push str._s_s_s
push edi
call fcn.0055f1d9
add esp, 0x14
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.00496da0
call fcn.004fff40
add esp, 4
push eax
call esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 5
call fcn.00497320
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 0
call fcn.00497320
lea ecx, [esp + 0x1c]
mov dword [esp + 0x240], 0xffffffff
call fcn.00497320
xor eax, eax
jmp 0x5008e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x240], 0xffffffff
call fcn.00497320
or eax, 0xffffffff
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.0055d2d5
add esp, 0x230
ret