Function at 0x439570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bef08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x4f2214]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov al, byte [esi + 0x4fd]
test al, al
push edi
jne 0x439797
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 0x4395c7
sub eax, edx
cmp byte [ebp + eax - 0x151], 0x5c
je 0x4395f3
lea edi, [ebp - 0x150]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4395e1
mov cx, word [0x4c6298]
mov word [edi], cx
lea edi, [ebp - 0x150]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x439600
mov edx, dword [str.popcinfo.dat]
mov eax, dword [0x4c6348]
mov ecx, dword [0x4c634c]
mov dword [edi], edx
mov dl, byte [0x4c6350]
mov dword [edi + 4], eax
lea eax, [ebp - 0x150]
mov dword [edi + 8], ecx
push 0x4c6078
push eax
mov byte [edi + 0xc], dl
call fcn.004a85fe
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43970b
push ebx
push 2
lea ecx, [ebp - 0x2e]
push 1
push ecx
call fcn.004a8556
add esp, 0x10
test eax, eax
je 0x439721
mov ax, word [ebp - 0x2e]
cmp ax, 0x100
jae 0x4396cd
movzx eax, ax
push ebx
push 1
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp + eax - 0x250], 0
call fcn.004a8556
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x439696
mov edi, dword [esi + 0xc]
jmp 0x439699
lea edi, [esi + 0xc]
lea eax, [ebp - 0x250]
nop
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4396c4
test cl, cl
je 0x4396c0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4396c4
add eax, 2
add edi, 2
test cl, cl
jne 0x4396a0
xor eax, eax
jmp 0x4396c9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4396f2
push 1
push 4
push ebx
call fcn.004a99dc
push ebx
push 2
lea eax, [ebp - 0x2e]
push 1
push eax
call fcn.004a8556
add esp, 0x1c
test eax, eax
jne 0x439661
jmp 0x439721
movzx ecx, word [ebp - 0x2e]
mov edx, 0xfffffffe
push 1
sub edx, ecx
push edx
push ebx
call fcn.004a99dc
add esp, 0xc
jmp 0x439721
lea eax, [ebp - 0x150]
push 0x4c3890
push eax
call fcn.004a85fe
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x439797
mov eax, dword [esi + 0x1c]
push ebx
push 2
lea ecx, [ebp - 0x34]
push 1
push ecx
mov dword [ebp - 0x34], eax
call fcn.004a8718
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x439749
mov eax, dword [esi + 0xc]
jmp 0x43974c
lea eax, [esi + 0xc]
movzx edx, word [ebp - 0x34]
push ebx
push 1
push edx
push eax
call fcn.004a8718
xor eax, eax
mov ax, word [esi + 0x4e8]
push ebx
push 2
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 0x30], eax
call fcn.004a8718
xor edx, edx
mov dx, word [esi + 0x4ec]
push ebx
push 2
lea eax, [ebp - 0x30]
push 1
push eax
mov dword [ebp - 0x30], edx
call fcn.004a8718
push ebx
call fcn.004a841c
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 0x4397b1
sub eax, edx
push eax
push str.MusicVolume
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
fld qword [esi + 0x68]
fmul qword [0x4c3678]
mov dword [ebp - 4], 0
call fcn.004a76bc
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00439520
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
mov ebx, 0x10
cmp eax, ebx
mov dword [ebp - 4], edi
jb 0x439807
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x439821
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
fld qword [esi + 0x70]
fmul qword [0x4c3678]
mov dword [ebp - 4], 1
call fcn.004a76bc
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x43986d
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004a773c
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 0x439887
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
mov eax, dword [esi + 0x454]
mov edx, dword [esi + 0x450]
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.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4398da
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x4398f4
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
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.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x43993f
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x439960
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
mov dl, byte [esi + 0x4e6]
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.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4399ab
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x4399c5
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
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.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439a10
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x439a30
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
mov eax, dword [esi + 0x4e8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439a74
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x439a90
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
mov eax, dword [esi + 0x4ec]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 7
call fcn.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439ad4
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x439af0
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
mov eax, dword [esi + 0x3e4]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439b34
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
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 0x439b50
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.00439520
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439b8f
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004a773c
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 0x439bb0
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
xor edx, edx
mov dl, byte [esi + 0x569]
lea eax, [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 4], 0xa
push edx
push eax
call fcn.00439540
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439bf6
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004a773c
add esp, 4
mov eax, dword [esi + 0x418]
test eax, eax
jne 0x439c31
mov eax, dword [esi + 0x3fc]
test eax, eax
jbe 0x439c29
mov eax, dword [esi + 0x434]
test eax, eax
jbe 0x439c29
push edi
push 0
lea edx, [esi + 0x3e8]
push edx
lea ecx, [esi + 0x404]
call fcn.00402bf0
mov eax, dword [esi + 0x418]
test eax, eax
jbe 0x439c94
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 0x439c50
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x2c]
call fcn.00402c7f
lea eax, [esi + 0x404]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.004394e0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x439c94
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a773c
add esp, 4
mov eax, dword [esi + 0x434]
test eax, eax
jbe 0x439cf9
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 0x439cb8
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x50]
call fcn.00402c7f
lea eax, [esi + 0x420]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.004394e0
cmp dword [ebp - 0x38], ebx
jb 0x439cf9
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004a773c
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.004a8117
mov esp, ebp
pop ebp
ret