Function at 0x1004fa09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ab14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push edi
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1004ffef
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x98], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1004fac1
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x1004fa9c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 1
jge 0x1004fabc
mov eax, dword [ebp - 0x20]
push dword [eax]
mov ecx, dword [ebp - 0xa0]
call fcn.1001b01e
mov dword [eax], 0x7e2799ac
jmp 0x1004fa91
jmp 0x1004ffed
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x50], eax
push 0
call fcn.10057add
pop ecx
and dword [ebp - 0x108], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x78], 0xcdc345fe
mov dword [ebp - 0x38], 0
jmp 0x1004fb0d
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 1
jge 0x1004fb20
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x3c], 0xfffffffc
jmp 0x1004fb06
mov byte [ebp - 0x10], 0
push 0x1bf4
push 0x4ccc
lea eax, [ebp - 0x10]
push eax
push 0
call fcn.10050661
add esp, 0x10
mov dword [ebp - 0x18], 0
jmp 0x1004fb4c
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1004fc8a
mov dword [ebp - 0x28], 2
mov byte [ebp - 0xe], 0
push 0x2c1e
push 0x3a75
push 0
push 0x40a4
push 0x236b
lea eax, [ebp - 0xe]
push eax
push 1
push 0x3d59
push 0x108
call fcn.10049b33
add esp, 0x24
mov dword [ebp - 0x28], 0
jmp 0x1004fb9f
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1004fc85
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x34], 0
jmp 0x1004fbc0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jg 0x1004fc72
mov dword [ebp - 0x30], 0xba07e4fc
mov dword [ebp - 0x30], 0
jmp 0x1004fbe1
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jg 0x1004fc6d
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x1004fc49
push 0x17ab
push 1
push 0x45e2
push 0x1a7d
push 0
push 0x543c
push 0x25c8
push 0x2541
push 0x7a1d
push 0x24e6
push 0x60f4
push 0x293c
push 0x390c
push 0x2418
push 0x3060
push 0x2f5d
call fcn.10048623
add esp, 0x40
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp + eax*4 - 0x3c]
add eax, 0xf3d3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x3c], ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x78], eax
jmp 0x1004fbda
jmp 0x1004fbb9
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x3c]
mov dword [ebp + ecx*4 - 0x3c], eax
jmp 0x1004fb98
jmp 0x1004fb45
push 0x1c
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0xb0]
push 0xb3f7
push 0x8160
call fcn.1003e88e
pop ecx
pop ecx
call eax
test eax, eax
je 0x1004ffe5
mov dword [ebp - 0x40], 0xe83c7730
push 3
lea ecx, [ebp - 0xd0]
call fcn.1001af80
and dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
jmp 0x1004fcdc
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jge 0x1004fcf2
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x114], 0xfffffff6
jmp 0x1004fcd5
push 0x7013
lea eax, [ebp - 0x24]
push eax
push 0x6958
push 1
push 0x6e4b
push 0xdbf
push 1
lea eax, [ebp - 0xd0]
push eax
call fcn.10040d49
add esp, 0x20
mov dword [ebp - 0x40], 2
jmp 0x1004fd2d
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x1004fd5a
mov byte [ebp - 0x11], 0
push 0x6010
push 1
push 0
push 1
lea eax, [ebp - 0x11]
push eax
push 0x5d58
push 0x608b
call fcn.10059471
add esp, 0x1c
jmp 0x1004fd26
push 0
lea ecx, [ebp - 0xd0]
call fcn.1001b01e
push 4
pop ecx
shl ecx, 0
mov eax, dword [eax]
mov dword [ebp + ecx - 0x114], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call fcn.1001b002
mov dword [ebp - 0x64], 0xee
mov dword [ebp - 0x2c], 0xffffffff
push 4
lea ecx, [ebp - 0xdc]
call fcn.1001af80
mov dword [ebp - 4], 1
mov dword [ebp - 0x58], 0
push 2
lea ecx, [ebp - 0xe8]
call fcn.1001af80
mov byte [ebp - 4], 2
push 0x41e5
lea eax, [ebp - 0x80]
push eax
push 1
push 1
push 0x7036
push 0
lea eax, [ebp - 0xdc]
push eax
push 0x61a6
push 0xc93
call fcn.10043e8a
add esp, 0x24
push 1
lea eax, [ebp - 0x80]
push eax
push 0x284d
push 0x71c7
push 0x649d
push 0x7d5f
push 0x7339
lea eax, [ebp - 0xe8]
push eax
push 0x7041
push 1
push 0x7fb4
push 0x6b9e
call fcn.10040ebb
add esp, 0x30
mov dword [ebp - 0x2c], 3
jmp 0x1004fe3b
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jg 0x1004ff8e
mov dword [ebp - 0x1c], 0x6432a276
mov dword [ebp - 0x90], 0xfffffff7
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x1c], 0xfffffff7
jmp 0x1004fe6d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xd
je 0x1004ff82
push 1
lea ecx, [ebp - 0xc0]
call fcn.1001af80
mov byte [ebp - 4], 3
mov dword [ebp - 0xac], 3
mov dword [ebp - 0xc4], 0xfffffffe
mov dword [ebp - 0x88], 8
push 0x4642
push 0
lea eax, [ebp - 0xc0]
push eax
push 0x4561
lea eax, [ebp - 0xec]
push eax
push 0
call fcn.10057e91
add esp, 0x18
push 0
lea ecx, [ebp - 0xc0]
call fcn.1001b01e
mov dword [eax], 6
jmp 0x1004fefa
push 0
lea ecx, [ebp - 0xc0]
call fcn.1001b01e
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0xc0]
call fcn.1001b01e
cmp dword [eax], 0xfffffff3
jle 0x1004ff6e
mov dword [ebp - 0xb4], 0x1c3a23fe
lea eax, [ebp - 0xac]
push eax
push 0x53c6
lea eax, [ebp - 0x88]
push eax
push 0x1880
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.1004e39e
add esp, 0x38
jmp 0x1004fedf
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.1001b002
jmp 0x1004fe66
mov dword [ebp - 0x5c], 0xb29d945a
jmp 0x1004fe34
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.1001b002
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.1001b002
mov eax, dword [ebp - 0xf4]
and eax, dword [ebp - 0x64]
jne 0x1004ffc0
mov dword [ebp - 0x48], 1
jmp 0x1004ffc4
and dword [ebp - 0x48], 0
mov al, byte [ebp - 0x48]
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0xf4]
and eax, 0x101
je 0x1004ffdb
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x50]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
jmp 0x1005005b
mov eax, dword [ebp - 0x50]
mov byte [eax], 1
jmp 0x1005005b
jmp 0x1005005b
lea eax, [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x1005001a
push 0x1d94
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x1005005b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x9c]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x20]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret