Function at 0x1001d58f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x1001d658
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1001d608
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push 0x25ea
mov eax, dword [ebp - 0x40]
push dword [eax]
push 1
push 0
push dword [ebp - 0x44]
push 0xc59
push 0x5a94
push 1
call fcn.1001ee92
add esp, 0x20
jmp 0x1001d653
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001d636
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jge 0x1001d653
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.10028ca3
mov dword [eax], 0xd133f29
jmp 0x1001d62b
jmp 0x1001d7af
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], 0x1e6e
cmp dword [ebp - 0x5c], 0xdfc
jge 0x1001d745
lea eax, [ebp - 0x10]
push eax
push 0x10008ae8
call fcn.1004eb10
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x60], 0
je 0x1001d745
and dword [ebp - 0x1c], 0
and dword [ebp - 0x24], 0
mov byte [ebp - 1], 1
lea eax, [ebp - 0x64]
push eax
push 0x10008ae8
call fcn.1004eb10
pop ecx
pop ecx
and dword [ebp - 0x14], 0
jmp 0x1001d6c8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x64]
jge 0x1001d71f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10008af4
call fcn.1004eb10
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jge 0x1001d6f1
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jge 0x1001d6fd
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x24]
cmp eax, ecx
jge 0x1001d711
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x1001d6c1
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001d730
mov dword [ebp - 0x28], 0x10008b18
jmp 0x1001d737
mov dword [ebp - 0x28], 0x10008b04
push dword [ebp - 0x28]
call fcn.1004f621
pop ecx
jmp 0x1001d688
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x1001d764
push 0x170c
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001d7af
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1001d792
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 3
jge 0x1001d7af
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x7c]
call fcn.10028ca3
mov dword [eax], 0xfffffff9
jmp 0x1001d787
mov esp, ebp
pop ebp
ret