Function at 0x438e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4939df
mov eax, dword fs:[0]
push eax
mov eax, 0x1d80
call fcn.00475630
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d8c], ecx
push 0x104
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.00472990
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x424]
push ecx
call fcn.0040b500
mov ecx, eax
call fcn.0040b770
movzx edx, word [ebp - 0x21c]
test edx, edx
jne 0x438eaf
lea eax, [ebp - 0x424]
push eax
push str.convert_dev_path_failed:_s
push 0x49c564
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
jmp 0x438f2d
xor ecx, ecx
mov word [ebp - 0x143c], cx
push 0x7fe
push 0
lea edx, [ebp - 0x143a]
push edx
call fcn.00472990
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x49c5a8
push str.HKLMREG_SZSYSTEMCurrentControlSetServices_sSystemSystemRoot_s
push 0x400
lea ecx, [ebp - 0x143c]
push ecx
call fcn.00474cf2
add esp, 0x14
lea edx, [ebp - 0x143c]
push edx
lea ecx, [ebp - 0x1d6c]
call fcn.00401c70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1d6c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00442060
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d6c]
call fcn.00401ce0
lea ecx, [ebp - 0xc2c]
call fcn.004269f0
mov dword [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0xc38], cx
xor edx, edx
mov dword [ebp - 0xc36], edx
mov ax, word [ebp - 0x424]
mov word [ebp - 0xc38], ax
mov cx, word [ebp - 0x422]
mov word [ebp - 0xc36], cx
lea edx, [ebp - 0xc38]
push edx
lea ecx, [ebp - 0xc2c]
call fcn.004278a0
mov dword [ebp - 0xc30], eax
cmp dword [ebp - 0xc30], 0xffffffff
je 0x43922d
mov dword [ebp - 0x1440], 0xffffffff
mov dword [ebp - 0x1444], 0
xor eax, eax
mov word [ebp - 0x1d4c], ax
push 0xfe
push 0
lea ecx, [ebp - 0x1d4a]
push ecx
call fcn.00472990
add esp, 0xc
mov edx, dword [ebp - 0xc30]
push edx
push str..PhysicalDrive_u
push 0x80
lea eax, [ebp - 0x1d4c]
push eax
call fcn.00474cf2
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x1d4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1440], eax
cmp dword [ebp - 0x1440], 0xffffffff
jne 0x43903d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1d4c]
push edx
push str.create__s_error:0x_x
push 0x49c5b4
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x4391eb
mov dword [ebp - 0x1448], 0x90
mov eax, dword [ebp - 0x1448]
push eax
call fcn.00476728
add esp, 4
mov dword [ebp - 0x1444], eax
cmp dword [ebp - 0x1444], 0
jne 0x439085
push str.malloc_failed
push 0x49c6a0
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 8
jmp 0x4391eb
push 4
push 0
mov ecx, dword [ebp - 0x1444]
push ecx
call fcn.00472990
add esp, 0xc
mov dword [ebp - 0x1d50], 0
push 0
lea edx, [ebp - 0x1d50]
push edx
mov eax, dword [ebp - 0x1448]
push eax
mov ecx, dword [ebp - 0x1444]
push ecx
push 0
push 0
push 0x70048
mov edx, dword [ebp - 0x1440]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4390fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceIoControl_error:0x_x
push 0x49c6c8
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0xc
jmp 0x4391eb
mov eax, dword [ebp - 0x1444]
mov ecx, dword [eax]
push ecx
push str.Partition:_d
push 0x49c70c
call fcn.00401340
add esp, 4
push eax
call fcn.004013f0
add esp, 0xc
mov edx, dword [ebp - 0x1444]
cmp dword [edx], 0
je 0x43912e
jmp 0x4391eb
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00472990
add esp, 0xc
mov ecx, dword [ebp - 0xc30]
push ecx
mov edx, dword [ebp - 0xc30]
push edx
push str.DeviceHarddisk_dDR_d
push 0x208
lea eax, [ebp - 0x21c]
push eax
call fcn.00474cf2
add esp, 0x14
xor ecx, ecx
mov word [ebp - 0x1c4c], cx
push 0x7fe
push 0
lea edx, [ebp - 0x1c4a]
push edx
call fcn.00472990
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x49c764
push str.HKLMREG_SZSYSTEMCurrentControlSetServices_sSystemPhysicalDrive_s
push 0x400
lea ecx, [ebp - 0x1c4c]
push ecx
call fcn.00474cf2
add esp, 0x14
lea edx, [ebp - 0x1c4c]
push edx
lea ecx, [ebp - 0x1d88]
call fcn.00401c70
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1d88]
push eax
mov ecx, dword [ebp + 8]
call fcn.00442060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d88]
call fcn.00401ce0
xor ecx, ecx
jne 0x438fa5
cmp dword [ebp - 0x1444], 0
je 0x43920d
mov edx, dword [ebp - 0x1444]
push edx
call fcn.00476105
add esp, 4
mov dword [ebp - 0x1444], 0
cmp dword [ebp - 0x1440], 0xffffffff
je 0x43922d
mov eax, dword [ebp - 0x1440]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1440], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc2c]
call fcn.0041f800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4