Function at 0x4860a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x52f2b0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov al, byte [esi + 0x4ed]
test al, al
push edi
jne 0x4862c7
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4860f7
sub eax, edx
cmp byte [ebp + eax - 0x151], 0x5c
je 0x486123
lea edi, [ebp - 0x150]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x486111
mov cx, word [0x4ffc0c]
mov word [edi], cx
lea edi, [ebp - 0x150]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x486130
mov edx, dword [str.popcinfo.dat]
mov eax, dword [0x503d80]
mov ecx, dword [0x503d84]
mov dword [edi], edx
mov dl, byte [0x503d88]
mov dword [edi + 4], eax
lea eax, [ebp - 0x150]
mov dword [edi + 8], ecx
push 0x503ae0
push eax
mov byte [edi + 0xc], dl
call fcn.004dac27
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48623b
push ebx
push 2
lea ecx, [ebp - 0x2e]
push 1
push ecx
call fcn.004db091
add esp, 0x10
test eax, eax
je 0x486251
mov ax, word [ebp - 0x2e]
cmp ax, 0x100
jae 0x4861fd
movzx eax, ax
push ebx
push 1
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp + eax - 0x250], 0
call fcn.004db091
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x4861c6
mov edi, dword [esi + 0xc]
jmp 0x4861c9
lea edi, [esi + 0xc]
lea eax, [ebp - 0x250]
nop
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4861f4
test cl, cl
je 0x4861f0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4861f4
add eax, 2
add edi, 2
test cl, cl
jne 0x4861d0
xor eax, eax
jmp 0x4861f9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x486222
push 1
push 4
push ebx
call fcn.004dab6a
push ebx
push 2
lea eax, [ebp - 0x2e]
push 1
push eax
call fcn.004db091
add esp, 0x1c
test eax, eax
jne 0x486191
jmp 0x486251
movzx ecx, word [ebp - 0x2e]
mov edx, 0xfffffffe
push 1
sub edx, ecx
push edx
push ebx
call fcn.004dab6a
add esp, 0xc
jmp 0x486251
lea eax, [ebp - 0x150]
push 0x501aec
push eax
call fcn.004dac27
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4862c7
mov eax, dword [esi + 0x1c]
push ebx
push 2
lea ecx, [ebp - 0x34]
push 1
push ecx
mov dword [ebp - 0x34], eax
call fcn.004da92a
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x486279
mov eax, dword [esi + 0xc]
jmp 0x48627c
lea eax, [esi + 0xc]
movzx edx, word [ebp - 0x34]
push ebx
push 1
push edx
push eax
call fcn.004da92a
xor eax, eax
mov ax, word [esi + 0x4d8]
push ebx
push 2
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 0x30], eax
call fcn.004da92a
xor edx, edx
mov dx, word [esi + 0x4dc]
push ebx
push 2
lea eax, [ebp - 0x30]
push 1
push eax
mov dword [ebp - 0x30], edx
call fcn.004da92a
push ebx
call fcn.004da1b0
add esp, 0x34
mov eax, str.MusicVolume
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4862e1
sub eax, edx
push eax
push str.MusicVolume
lea ecx, [ebp - 0x2c]
call fcn.004066c0
fld qword [esi + 0x68]
fmul qword [0x4ffcb8]
mov dword [ebp - 4], 0
call fcn.004d8d68
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00486050
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
mov ebx, 0x10
cmp eax, ebx
mov dword [ebp - 4], edi
jb 0x486337
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.SfxVolume
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486351
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x2c]
call fcn.004066c0
fld qword [esi + 0x70]
fmul qword [0x4ffcb8]
mov dword [ebp - 4], 1
call fcn.004d8d68
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x48639d
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004d88be
add esp, 4
mov eax, str.Muted
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4863b7
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov eax, dword [esi + 0x444]
mov edx, dword [esi + 0x440]
sub edx, eax
xor eax, eax
test edx, edx
setg al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
push ecx
mov ecx, esi
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x48640a
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.ScreenMode
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486424
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov dl, byte [esi + 0x2e2]
xor eax, eax
test dl, dl
sete al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
push eax
push ecx
mov ecx, esi
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x48646f
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.CustomCursors
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486490
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov dl, byte [esi + 0x4d6]
xor eax, eax
test dl, dl
setne al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
push ecx
mov ecx, esi
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4864db
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.ITSuccess
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4864f5
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov dl, byte [esi + 0x308]
xor eax, eax
test dl, dl
setne al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 5
push eax
push ecx
mov ecx, esi
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x486540
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.TimesPlayed
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486560
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov eax, dword [esi + 0x4d8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4865a4
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.TimesExecuted
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4865c0
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov eax, dword [esi + 0x4dc]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 7
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x486604
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.LastVerCheckQueryTime
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486620
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x2c]
call fcn.004066c0
mov eax, dword [esi + 0x3d4]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x486664
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, str.InProgress
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486680
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x2c]
call fcn.004066c0
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.00486050
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4866bf
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004d88be
add esp, 4
mov eax, str.WaitForVSync
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4866e0
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x2c]
call fcn.004066c0
xor edx, edx
mov dl, byte [esi + 0x559]
lea eax, [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 4], 0xa
push edx
push eax
call fcn.00486070
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x486726
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004d88be
add esp, 4
mov eax, dword [esi + 0x408]
test eax, eax
jne 0x486761
mov eax, dword [esi + 0x3ec]
test eax, eax
jbe 0x486759
mov eax, dword [esi + 0x424]
test eax, eax
jbe 0x486759
push edi
push 0
lea edx, [esi + 0x3d8]
push edx
lea ecx, [esi + 0x3f4]
call fcn.00406610
mov eax, dword [esi + 0x408]
test eax, eax
jbe 0x4867c4
mov eax, str.RegName
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486780
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x2c]
call fcn.004066c0
lea eax, [esi + 0x3f4]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.00486010
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4867c4
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d88be
add esp, 4
mov eax, dword [esi + 0x424]
test eax, eax
jbe 0x486829
mov eax, str.RegCode
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4867e8
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x50]
call fcn.004066c0
lea eax, [esi + 0x410]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.00486010
cmp dword [ebp - 0x38], ebx
jb 0x486829
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004d88be
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004d9f7e
mov esp, ebp
pop ebp
ret