Function at 0x1004c285
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d6db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x9c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1004c445
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x1004c30a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x48]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x1004c440
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0x1294
mov dword [ebp - 0x60], 0x10008b30
cmp dword [ebp - 0x28], 0x12fc
jle 0x1004c3c5
push 0x21f
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and dword [ebp - 0x20], 0
jmp 0x1004c357
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2465
jge 0x1004c3c5
and dword [ebp - 0x1c], 0
jmp 0x1004c36d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x61d0
jge 0x1004c3c3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
lea ecx, [ebp - 0xac]
call fcn.1000a23e
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
call fcn.1001e67c
push eax
call fcn.1005556f
pop ecx
lea ecx, [ebp - 0xac]
call fcn.1001e672
jmp 0x1004c366
jmp 0x1004c350
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x88], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0xfe6
jge 0x1004c3e4
push dword [ebp - 0x60]
call fcn.1005556f
pop ecx
jmp 0x1004c400
or dword [ebp - 4], 0xffffffff
jmp 0x1004c40a
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1004c420
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 4
jge 0x1004c440
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x88]
call fcn.1001e97a
mov dword [eax], 7
jmp 0x1004c415
jmp 0x1004c4ed
lea eax, [ebp + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1004c49c
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
jmp 0x1004c4ed
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1004c4cd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 3
jge 0x1004c4ed
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x84]
call fcn.1001e97a
mov dword [eax], 0x8039d6b9
jmp 0x1004c4c2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret