Function at 0x4076b0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040b890
mov eax, dword [0x437040]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push edi
push 0
push 0
push eax
call fcn.00408660
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x407708
push str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.00402470
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret
push esi
push 0x1000
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov esi, eax
call fcn.00412e6e
add esp, 4
test esi, esi
jne 0x40774f
push str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.00402470
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.00408510
add esp, 4
test eax, eax
lea eax, [esp + 8]
je 0x407813
push eax
push str.LOADER:_expanded_runtime_tmpdir_is_a_drive_root:__ls_n
call fcn.004028a0
add esp, 8
cmp word [esp + 0xc], 0x5c
je 0x4077b3
lea eax, [esp + 8]
push eax
push str.LOADER:_appending_backslash_to_the_given_drive_root__ls_n
call fcn.004028a0
lea edi, [esp + 0x10]
add esp, 8
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4077a0
mov eax, dword [0x42a394]
mov dword [edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x4077ef
push eax
lea eax, [esp + 0xc]
push eax
push 0x42a398
call fcn.00402470
add esp, 0xc
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret
lea eax, [esp + 8]
push eax
call fcn.00415443
add esp, 4
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret
push 0x1000
push eax
push 0
call fcn.004158d4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40784f
push str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.00402470
add esp, 4
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret
push esi
push str.LOADER:_absolute_runtime_tmpdir_is__ls_n
call fcn.004028a0
push 0x5c
push esi
call fcn.0040cba7
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4078c8
nop dword [eax + eax]
mov ecx, edi
lea eax, [esp + 0x2008]
push esi
sub ecx, esi
sar ecx, 1
push ecx
push str._.s
push 0x1000
push eax
call fcn.00402340
lea eax, [esp + 0x201c]
push eax
push str.LOADER:_creating_runtime_tmpdir_path_component:__ls_n
call fcn.004028a0
add esp, 0x1c
lea eax, [esp + 0x2008]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [edi + 2]
push 0x5c
push eax
call fcn.0040cba7
mov edi, eax
add esp, 8
test edi, edi
jne 0x407870
push esi
push str.LOADER:_creating_runtime_tmpdir_path:__ls_n
call fcn.004028a0
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407922
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407922
push esi
push str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
push str.CreateDirectory
call fcn.00402700
push esi
call fcn.00412e6e
add esp, 0x10
xor eax, eax
pop esi
pop edi
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4008]
mov eax, esi
pop esi
pop edi
xor ecx, esp
call fcn.0040b553
add esp, 0x4004
ret