Function at 0x1001a07d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1001a213
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1001a0df
push 0x15f1
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1001a211
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
push 1
mov ecx, dword [ebp - 0x68]
call fcn.1000155c
mov eax, 0x43b9c309
inc eax
cmp eax, 0x1943
jge 0x1001a160
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x1001a160
and dword [ebp - 0x10], 0
jmp 0x1001a167
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0xb0d5
jg 0x1001a179
mov dword [ebp - 0x14], 1
jmp 0x1001a17d
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jne 0x1001a190
mov dword [ebp - 0x18], 1
jmp 0x1001a194
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
sub eax, 5
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x28]
call fcn.1000155c
cmp esi, dword [eax]
je 0x1001a1bb
mov dword [ebp - 0x20], 1
jmp 0x1001a1bf
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jle 0x1001a1d2
mov dword [ebp - 0x24], 1
jmp 0x1001a1d6
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x24]
sub eax, 0x1697
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
neg esi
push 0
mov ecx, dword [ebp - 0x28]
call fcn.1000155c
mov dword [eax], esi
jmp 0x1001a22f
lea eax, [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
mov cl, 1
call fcn.10013512
pop ecx
pop esi
mov esp, ebp
pop ebp
ret