Function at 0x46b380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov al, byte [esi + 0x51d]
test al, al
push edi
jne 0x46b5a7
push 0x100
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 0x46b3d7
sub eax, edx
cmp byte [ebp + eax - 0x151], 0x5c
je 0x46b403
lea edi, [ebp - 0x150]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46b3f1
mov cx, word [0x504804]
mov word [edi], cx
lea edi, [ebp - 0x150]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x46b410
mov edx, dword [str.popcinfo.dat]
mov eax, dword [0x5048c4]
mov ecx, dword [0x5048c8]
mov dword [edi], edx
mov dl, byte [0x5048cc]
mov dword [edi + 4], eax
lea eax, [ebp - 0x150]
mov dword [edi + 8], ecx
push 0x5048bc
push eax
mov byte [edi + 0xc], dl
call fcn.004e1c8b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46b51b
push ebx
push 2
lea ecx, [ebp - 0x2e]
push 1
push ecx
call fcn.004e225b
add esp, 0x10
test eax, eax
je 0x46b531
mov ax, word [ebp - 0x2e]
cmp ax, 0x100
jae 0x46b4dd
movzx eax, ax
push ebx
push 1
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp + eax - 0x250], 0
call fcn.004e225b
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x46b4a6
mov edi, dword [esi + 0xc]
jmp 0x46b4a9
lea edi, [esi + 0xc]
lea eax, [ebp - 0x250]
nop
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x46b4d4
test cl, cl
je 0x46b4d0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x46b4d4
add eax, 2
add edi, 2
test cl, cl
jne 0x46b4b0
xor eax, eax
jmp 0x46b4d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46b502
push 1
push 4
push ebx
call fcn.004e38df
push ebx
push 2
lea eax, [ebp - 0x2e]
push 1
push eax
call fcn.004e225b
add esp, 0x1c
test eax, eax
jne 0x46b471
jmp 0x46b531
movzx ecx, word [ebp - 0x2e]
mov edx, 0xfffffffe
push 1
sub edx, ecx
push edx
push ebx
call fcn.004e38df
add esp, 0xc
jmp 0x46b531
lea eax, [ebp - 0x150]
push 0x5007c0
push eax
call fcn.004e1c8b
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x46b5a7
mov eax, dword [esi + 0x1c]
push ebx
push 2
lea ecx, [ebp - 0x34]
push 1
push ecx
mov dword [ebp - 0x34], eax
call fcn.004e23ae
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x46b559
mov eax, dword [esi + 0xc]
jmp 0x46b55c
lea eax, [esi + 0xc]
movzx edx, word [ebp - 0x34]
push ebx
push 1
push edx
push eax
call fcn.004e23ae
xor eax, eax
mov ax, word [esi + 0x508]
push ebx
push 2
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 0x30], eax
call fcn.004e23ae
xor edx, edx
mov dx, word [esi + 0x50c]
push ebx
push 2
lea eax, [ebp - 0x30]
push 1
push eax
mov dword [ebp - 0x30], edx
call fcn.004e23ae
push ebx
call fcn.004e1bde
add esp, 0x34
mov eax, 0x5048b0
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 0x46b5c1
sub eax, edx
push eax
push 0x5048b0
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
fld qword [esi + 0x68]
fmul qword [0x5048a8]
mov dword [ebp - 4], 0
call fcn.004e11d8
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.0046b330
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
mov ebx, 0x10
cmp eax, ebx
mov dword [ebp - 4], edi
jb 0x46b617
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b631
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
fld qword [esi + 0x70]
fmul qword [0x5048a8]
mov dword [ebp - 4], 1
call fcn.004e11d8
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b67d
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e11d0
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 0x46b697
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov eax, dword [esi + 0x474]
mov edx, dword [esi + 0x470]
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.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b6ea
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b704
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov dl, byte [esi + 0x2f2]
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.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b74f
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b770
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov dl, byte [esi + 0x506]
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.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b7bb
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b7d5
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov dl, byte [esi + 0x318]
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.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b820
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b840
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov eax, dword [esi + 0x508]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b884
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b8a0
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov eax, dword [esi + 0x50c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 7
call fcn.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b8e4
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b900
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
mov eax, dword [esi + 0x400]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b944
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
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 0x46b960
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.0046b330
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46b99f
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e11d0
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 0x46b9c0
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
xor edx, edx
mov dl, byte [esi + 0x58d]
lea eax, [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 4], 0xa
push edx
push eax
call fcn.0046b350
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46ba06
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004e11d0
add esp, 4
mov eax, dword [esi + 0x434]
test eax, eax
jne 0x46ba41
mov eax, dword [esi + 0x418]
test eax, eax
jbe 0x46ba39
mov eax, dword [esi + 0x450]
test eax, eax
jbe 0x46ba39
push edi
push 0
lea edx, [esi + 0x404]
push edx
lea ecx, [esi + 0x420]
call fcn.00408e40
mov eax, dword [esi + 0x434]
test eax, eax
jbe 0x46baa4
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 0x46ba60
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
lea eax, [esi + 0x420]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.0046b2f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x46baa4
mov edx, dword [ebp - 0x28]
push edx
call fcn.004e11d0
add esp, 4
mov eax, dword [esi + 0x450]
test eax, eax
jbe 0x46bb09
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 0x46bac8
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x50]
call fcn.00408ff0
lea eax, [esi + 0x43c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.0046b2f0
cmp dword [ebp - 0x38], ebx
jb 0x46bb09
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004e11d0
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.004e19df
mov esp, ebp
pop ebp
ret