Function at 0x10001038
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x103
push esi
lea eax, [ebp - 0x26b]
push ebx
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x26c], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x163]
push ebx
push eax
mov byte [ebp - 0x164], bl
call sub.msvcrt.dll_memset
add esp, 0x18
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x5c], ebx
rep stosd dword es:[edi], eax
push 7
mov byte [ebp - 0x3c], bl
pop ecx
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xc], 0x5c2e5c5c
mov word [ebp - 8], 0x3a30
mov byte [ebp - 6], bl
mov dword [ebp - 0x1c], ebx
stosb byte es:[edi], al
cmp dword [ebp + 8], ebx
je 0x10001221
push 0x104
push ebx
push dword [ebp + 8]
call sub.msvcrt.dll_memset
mov esi, str..PhysicalDrive
lea edi, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x26c]
movsb byte es:[edi], byte [esi]
push eax
mov byte [ebp - 0x153], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1000110a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10001226
and eax, 0xffff
or eax, 0x80070000
jmp 0x10001226
mov al, byte [ebp - 0x26c]
push ebx
push ebx
push 3
push ebx
push 3
mov byte [ebp - 8], al
push ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x100010ed
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push ebx
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10001166
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1000115e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
jmp 0x10001213
push 0xa
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x54]
call sub.msvcrt.dll__itoa
lea eax, [ebp - 0x164]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001180
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x3c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001191
sub eax, esi
mov ecx, eax
lea eax, [ecx + edi + 1]
mov dword [ebp - 0x14], ecx
cmp eax, 0x104
jbe 0x100011b3
mov dword [ebp - 0x10], 0x8007007a
jmp 0x10001213
cmp edi, ebx
jbe 0x100011de
mov eax, 0x103
cmp edi, eax
jbe 0x100011c2
mov edi, eax
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x164]
push eax
push esi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov byte [edi + esi], bl
jmp 0x100011e1
mov esi, dword [ebp + 8]
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100011e6
sub eax, edi
cmp ecx, ebx
jbe 0x10001213
lea edi, [ecx + eax]
cmp edi, 0x104
jae 0x10001213
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push ecx
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x10001226
mov eax, 0xa0
pop edi
pop esi
pop ebx
leave
ret 4