Function at 0x4d2740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov al, byte [esi + 0x549]
test al, al
push edi
jne 0x4d2967
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 0x4d2797
sub eax, edx
cmp byte [ebp + eax - 0x151], 0x5c
je 0x4d27c3
lea edi, [ebp - 0x150]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4d27b1
mov cx, word [0x55734c]
mov word [edi], cx
lea edi, [ebp - 0x150]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4d27d0
mov edx, dword [str.popcinfo.dat]
mov eax, dword [0x55cadc]
mov ecx, dword [0x55cae0]
mov dword [edi], edx
mov dl, byte [0x55cae4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x150]
mov dword [edi + 8], ecx
push 0x55cad4
push eax
mov byte [edi + 0xc], dl
call fcn.00528841
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4d28db
push ebx
push 2
lea ecx, [ebp - 0x2e]
push 1
push ecx
call fcn.005283d4
add esp, 0x10
test eax, eax
je 0x4d28f1
mov ax, word [ebp - 0x2e]
cmp ax, 0x100
jae 0x4d289d
movzx eax, ax
push ebx
push 1
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp + eax - 0x250], 0
call fcn.005283d4
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x4d2866
mov edi, dword [esi + 0xc]
jmp 0x4d2869
lea edi, [esi + 0xc]
lea eax, [ebp - 0x250]
nop
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4d2894
test cl, cl
je 0x4d2890
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4d2894
add eax, 2
add edi, 2
test cl, cl
jne 0x4d2870
xor eax, eax
jmp 0x4d2899
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4d28c2
push 1
push 4
push ebx
call fcn.00529ebc
push ebx
push 2
lea eax, [ebp - 0x2e]
push 1
push eax
call fcn.005283d4
add esp, 0x1c
test eax, eax
jne 0x4d2831
jmp 0x4d28f1
movzx ecx, word [ebp - 0x2e]
mov edx, 0xfffffffe
push 1
sub edx, ecx
push edx
push ebx
call fcn.00529ebc
add esp, 0xc
jmp 0x4d28f1
lea eax, [ebp - 0x150]
push 0x54cb04
push eax
call fcn.00528841
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4d2967
mov eax, dword [esi + 0x1c]
push ebx
push 2
lea ecx, [ebp - 0x34]
push 1
push ecx
mov dword [ebp - 0x34], eax
call fcn.00528527
mov eax, dword [esi + 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x4d2919
mov eax, dword [esi + 0xc]
jmp 0x4d291c
lea eax, [esi + 0xc]
movzx edx, word [ebp - 0x34]
push ebx
push 1
push edx
push eax
call fcn.00528527
xor eax, eax
mov ax, word [esi + 0x534]
push ebx
push 2
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 0x30], eax
call fcn.00528527
xor edx, edx
mov dx, word [esi + 0x538]
push ebx
push 2
lea eax, [ebp - 0x30]
push 1
push eax
mov dword [ebp - 0x30], edx
call fcn.00528527
push ebx
call fcn.0052829a
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 0x4d2981
sub eax, edx
push eax
push str.MusicVolume
lea ecx, [ebp - 0x2c]
call fcn.0041af60
fld qword [esi + 0x78]
fmul qword [0x546598]
mov dword [ebp - 4], 0
call fcn.00527ae0
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.004d26f0
mov eax, dword [ebp - 0x14]
or edi, 0xffffffff
mov ebx, 0x10
cmp eax, ebx
mov dword [ebp - 4], edi
jb 0x4d29d7
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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 0x4d29f1
sub eax, edx
push eax
push str.SfxVolume
lea ecx, [ebp - 0x2c]
call fcn.0041af60
fld qword [esi + 0x80]
fmul qword [0x546598]
mov dword [ebp - 4], 1
call fcn.00527ae0
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2a40
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00527b8e
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]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2a60
sub eax, edx
push eax
push str.Muted
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov eax, dword [esi + 0x494]
mov edx, dword [esi + 0x490]
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.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2ab3
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2ad0
sub eax, edx
push eax
push str.ScreenMode
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov dl, byte [esi + 0x30e]
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.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2b1b
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
add esp, 4
mov eax, str.PreferredX
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 0x4d2b35
sub eax, edx
push eax
push str.PreferredX
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov eax, dword [esi + 0x60]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2b76
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
add esp, 4
mov eax, str.PreferredY
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 0x4d2b90
sub eax, edx
push eax
push str.PreferredY
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov eax, dword [esi + 0x64]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2bd1
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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]
jmp 0x4d2bf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2bf0
sub eax, edx
push eax
push str.CustomCursors
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov dl, byte [esi + 0x533]
xor eax, eax
test dl, dl
setne al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 6
push eax
push ecx
mov ecx, esi
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2c3b
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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 0x4d2c55
sub eax, edx
push eax
push str.ITSuccess
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov dl, byte [esi + 0x338]
xor eax, eax
test dl, dl
setne al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 7
push eax
push ecx
mov ecx, esi
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2ca0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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 0x4d2cc0
sub eax, edx
push eax
push str.TimesPlayed
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov eax, dword [esi + 0x534]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 8
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2d04
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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 0x4d2d20
sub eax, edx
push eax
push str.TimesExecuted
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov eax, dword [esi + 0x538]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 9
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2d64
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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 0x4d2d80
sub eax, edx
push eax
push str.LastVerCheckQueryTime
lea ecx, [ebp - 0x2c]
call fcn.0041af60
mov eax, dword [esi + 0x420]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xa
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2dc4
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
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 0x4d2de0
sub eax, edx
push eax
push str.InProgress
lea ecx, [ebp - 0x2c]
call fcn.0041af60
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xb
call fcn.004d26f0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2e1f
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00527b8e
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 0x4d2e40
sub eax, edx
push eax
push str.WaitForVSync
lea ecx, [ebp - 0x2c]
call fcn.0041af60
xor edx, edx
mov dl, byte [esi + 0x5cb]
lea eax, [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 4], 0xc
push edx
push eax
call fcn.004d2710
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2e86
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00527b8e
add esp, 4
mov eax, dword [esi + 0x454]
test eax, eax
jne 0x4d2ec1
mov eax, dword [esi + 0x438]
test eax, eax
jbe 0x4d2eb9
mov eax, dword [esi + 0x470]
test eax, eax
jbe 0x4d2eb9
push edi
push 0
lea edx, [esi + 0x424]
push edx
lea ecx, [esi + 0x440]
call fcn.0041ad80
mov eax, dword [esi + 0x454]
test eax, eax
jbe 0x4d2f24
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 0x4d2ee0
sub eax, edx
push eax
push str.RegName
lea ecx, [ebp - 0x2c]
call fcn.0041af60
lea eax, [esi + 0x440]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xd
call fcn.004d26b0
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
jb 0x4d2f24
mov edx, dword [ebp - 0x28]
push edx
call fcn.00527b8e
add esp, 4
mov eax, dword [esi + 0x470]
test eax, eax
jbe 0x4d2f89
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 0x4d2f48
sub eax, edx
push eax
push str.RegCode
lea ecx, [ebp - 0x50]
call fcn.0041af60
lea eax, [esi + 0x45c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0xe
call fcn.004d26b0
cmp dword [ebp - 0x38], ebx
jb 0x4d2f89
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00527b8e
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.00528d83
mov esp, ebp
pop ebp
ret