Function at 0x4aa060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2d
push 0
push 0
dec ecx
jne 0x4aa068
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x125]
xor eax, eax
push ebp
push 0x4aa8ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff7
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
or esi, 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x1ec], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.00409260
test al, al
jne 0x4aa0da
mov eax, dword [ebp - 4]
cmp byte [eax + 0x17d], 0
jne 0x4aa0da
xor ecx, ecx
mov edx, 0x2776
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4aa8c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.00404548
mov edi, eax
add edi, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.00404548
add edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.00404548
add edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.00404548
add edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
add eax, 3
test eax, eax
jns 0x4aa12d
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.00404548
cmp eax, 0xff
jg 0x4aa18a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.00404548
cmp eax, 0xff
jg 0x4aa18a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.00404548
cmp eax, 0xff
jg 0x4aa18a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.00404548
cmp eax, 0xff
jle 0x4aa1c7
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.00408c04
mov ecx, dword [ebp - 0x144]
lea eax, [ebp - 0x140]
mov edx, 0x4aa908
call fcn.00404594
mov ecx, dword [ebp - 0x140]
mov edx, 0x2a31
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4aa8c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov ecx, 1
mov edx, 1
call fcn.004047a8
mov eax, dword [ebp - 0x148]
mov edx, 0x4aa950
call fcn.00404694
jne 0x4aa25e
lea edx, [ebp - 0x150]
xor eax, eax
call fcn.00402b20
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.0040966c
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x300]
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.00404594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
mov eax, dword [ebp - 4]
add eax, 0x300
mov edx, 0x4aa95c
call fcn.004042dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
lea edx, [ebp - 0x158]
xor eax, eax
call fcn.00402b20
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.0040966c
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 4]
add eax, 0x300
mov ecx, 0x4aa95c
call fcn.00404594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x15c]
mov edx, ebx
mov ecx, 0x105
call fcn.004044f8
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 4]
add eax, 0x300
mov ecx, 0x4aa970
call fcn.00404594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
push 0x104
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x160]
mov edx, ebx
mov ecx, 0x105
call fcn.004044f8
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 4]
add eax, 0x300
mov ecx, 0x4aa970
call fcn.00404594
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x178]
mov eax, dword [ebp - 4]
add eax, 0x300
mov ecx, 0x4aa970
call fcn.00404594
mov eax, dword [ebp - 4]
cmp dword [eax + 0x178], 0
je 0x4aa39d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00409260
test al, al
jne 0x4aa3b1
xor ecx, ecx
mov edx, 0x2a32
mov eax, dword [ebp - 4]
call fcn.004a36ac
jmp 0x4aa8c8
xor eax, eax
push ebp
push 0x4aa3d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.00402748
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa3f8
mov eax, dword [ebp - 4]
call fcn.004a3b60
mov edx, dword [ebp - 0x1c]
inc edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
call fcn.00402e3c
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x4d
mov eax, dword [ebp - 0x20]
mov byte [eax + 1], 0x50
mov eax, dword [ebp - 0x20]
mov byte [eax + 2], 0x56
xor eax, eax
mov edx, dword [ebp - 4]
test byte [edx + 0x2fc], 1
je 0x4aa432
mov al, 1
mov edx, dword [ebp - 4]
test byte [edx + 0x2fc], 2
je 0x4aa440
or al, 2
mov edx, dword [ebp - 4]
test byte [edx + 0x2fc], 8
je 0x4aa44e
or al, 4
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x2fd]
dec dl
je 0x4aa461
dec dl
je 0x4aa465
jmp 0x4aa467
or al, 8
jmp 0x4aa467
or al, 0x10
mov edx, dword [ebp - 4]
test byte [edx + 0x2fc], 0x10
jne 0x4aa475
or al, 0x20
mov edx, dword [ebp - 4]
test byte [edx + 0x2fc], 4
je 0x4aa483
or al, 0x40
mov edx, dword [ebp - 4]
test byte [edx + 0x2fc], 0x20
je 0x4aa491
or al, 0x80
mov edx, dword [ebp - 0x20]
mov byte [edx + 3], al
mov eax, dword [ebp - 0x20]
mov byte [eax + 5], 1
mov al, byte [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov byte [edx + 6], al
mov ax, word [ebp - 0x1c]
call fcn.00407168
mov edx, dword [ebp - 0x20]
mov byte [edx + 7], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.00404548
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 8], bl
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2e8]
mov eax, dword [ebp - 0x20]
add eax, 9
call fcn.004099e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.00404548
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx + 9], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f0]
mov eax, dword [ebp - 0x20]
add eax, ebx
add eax, 0xa
call fcn.004099e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
call fcn.00404548
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.00404548
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx + 0xa], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2ec]
mov eax, dword [ebp - 0x20]
add eax, ebx
add eax, 0xb
call fcn.004099e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.00404548
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.00404548
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx + 0xb], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
call fcn.00404548
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f8]
mov eax, dword [ebp - 0x20]
add eax, ebx
add eax, 0xc
call fcn.00409a04
mov eax, dword [ebp - 4]
cmp byte [eax + 0x17d], 0
je 0x4aa5ad
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
call fcn.00404320
jmp 0x4aa610
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0040976c
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.004084d4
mov eax, dword [ebp - 0x164]
mov edx, 0x4aa984
call fcn.00404694
je 0x4aa5fd
xor ecx, ecx
mov edx, 0x2a33
mov eax, dword [ebp - 4]
call fcn.004a36ac
mov eax, dword [ebp - 0x20]
call fcn.00402768
jmp 0x4aa8c8
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, 0x4aa994
call fcn.004095d8
mov eax, dword [ebp - 0x10]
call fcn.00409260
test al, al
je 0x4aa630
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x1a8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a5b34
mov eax, dword [ebp - 0x10]
call fcn.00409128
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4aa83c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov edx, 0x20
call fcn.004090d0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4aa6b4
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a5de8
mov dword [ebp - 8], eax
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.004091ac
mov dword [ebp - 0x18], eax
mov eax, ebx
call fcn.004091f0
cmp dword [ebp - 8], 0
jne 0x4aa6bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x4aa6bb
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a9e74
mov dword [ebp - 8], eax
jmp 0x4aa6bb
mov dword [ebp - 8], 0xfffffffd
cmp dword [ebp - 8], 0
jne 0x4aa821
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00409180
cmp eax, dword [ebp - 0x1c]
je 0x4aa6df
mov dword [ebp - 8], 0xfffffffe
cmp dword [ebp - 8], 0
jne 0x4aa821
mov eax, dword [ebp - 4]
cmp byte [eax + 0x17d], 0
je 0x4aa745
lea eax, [ebp - 0x13b]
xor ecx, ecx
mov edx, 0x16
call fcn.00402e3c
mov dword [ebp - 0x13b], 0x6054b50
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x12b], eax
lea edx, [ebp - 0x13b]
mov ecx, 0x16
mov eax, dword [ebp - 0xc]
call fcn.00409180
cmp eax, 0x16
je 0x4aa821
mov dword [ebp - 8], 0xfffffffe
jmp 0x4aa821
xor eax, eax
push ebp
push 0x4aa7fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x13b]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.004a5ef4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c8]
xor ecx, ecx
xor edx, edx
call fcn.004091ac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c0], 0
je 0x4aa7a8
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a5de8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1bc]
mov dword [ebp - 0x14], eax
jmp 0x4aa7f3
mov eax, dword [ebp - 0x12b]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a5de8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4aa7e7
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x13b]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004aa99c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b8]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aa80e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c8]
cmp eax, 0xffffffff
je 0x4aa821
call fcn.004091f0
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004091ac
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004091f0
jmp 0x4aa843
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 8], 0
jne 0x4aa855
mov eax, dword [ebp - 4]
cmp byte [eax + 0x17d], 0
jne 0x4aa8b2
cmp dword [ebp - 8], 0
jne 0x4aa880
cmp dword [ebp - 0x18], 0xffffffff
je 0x4aa879
cmp dword [ebp - 0x14], 0xffffffff
je 0x4aa879
cmp esi, 0xffffffff
je 0x4aa879
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp esi, eax
je 0x4aa880
mov dword [ebp - 8], 0xfffffff7
cmp dword [ebp - 8], 0
jne 0x4aa8aa
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x1a8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 4]
call fcn.004a5b34
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004a39c8
jmp 0x4aa8b2
mov eax, dword [ebp - 0x10]
call fcn.00409540
cmp dword [ebp - 0x20], 0
je 0x4aa8c0
mov eax, dword [ebp - 0x20]
call fcn.00402768
mov eax, dword [ebp - 4]
call fcn.004a3b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa8f5
lea eax, [ebp - 0x168]
mov edx, 0xb
call fcn.004042ac
lea eax, [ebp - 0x10]
call fcn.00404288
ret