Function at 0x10012760
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100359f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x1007700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10077d88]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10077ec0]
cmp eax, dword [ecx + 4]
jle 0x1001280d
push 0x10077ec0
call fcn.10033a36
add esp, 4
cmp dword [0x10077ec0], 0xffffffff
jne 0x1001280d
push 0x10037530
mov dword [0x10077ea8], 0
mov dword [0x10077eac], 0
mov dword [0x10077eb0], 0
mov dword [0x10077eb4], 0
mov byte [0x10077eb8], 0
mov dword [0x10077ebc], 0
call fcn.100338bd
add esp, 4
push 0x10077ec0
call fcn.100339f7
add esp, 4
call fcn.10011ea0
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x10077ebc], 0
jne 0x10012b81
push 1
push 1
push 1
push 0x400
mov ecx, 0x10077ea8
call fcn.10015970
sub esp, 0xc
lea ecx, [ebp - 0x50]
push 0x400
call fcn.10015b60
sub esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
push 0x100
call fcn.10015b60
mov byte [ebp - 4], 1
call fcn.10012060
mov edi, dword [ebp - 0x24]
push eax
push str._s.tmp
push dword [ebp - 0x38]
push edi
call fcn.10011900
push 0x1006f58c
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, dword [ebp - 0x3c]
add esp, 0x14
mov ebx, dword [ebp - 0x50]
test eax, eax
jne 0x100128b8
push str.TEMP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
call fcn.10012170
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100128fb
push eax
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push str.C:WINNTTemp
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push str.C:WINDOWSTemp
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push str.C:Temp
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push 0x1006f5c8
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push str.D:WINNTTemp
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push str.D:WINDOWSTemp
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push str.D:Temp
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
push 0x1006f5f4
push 0x1006f034
push dword [0x10077ea8]
push dword [0x10077ebc]
call fcn.10011900
push edi
push 0x5c
push dword [0x10077ebc]
push str._s_c_s
push ebx
push esi
call fcn.10011900
add esp, 0x28
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
jne 0x10012b52
mov eax, dword [0x10077ebc]
mov byte [eax], 0
lea eax, [ebx - 1]
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov edx, 0x1006f0e0
mov ecx, esi
call fcn.10012630
test eax, eax
je 0x10012ba6
mov ecx, eax
call fcn.10012220
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
cmp byte [ebp - 0x28], 0
jne 0x10012b72
push edi
call fcn.100338e0
add esp, 4
cmp byte [ebp - 0x40], 0
jne 0x10012b81
push esi
call fcn.100338e0
add esp, 4
call fcn.10011ea0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x10077ebc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10011ea0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x20]
push str.cimg::temporary_path__:_Failed_to_locate_path_for_writing_temporary_files._n
push eax
call fcn.10011d00
add esp, 8
lea eax, [ebp - 0x20]
push 0x10074d2c
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3