Function at 0x100132c0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100383e1
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1007db70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1007dca8]
cmp eax, dword [ecx + 4]
jle 0x1001337e
push 0x1007dca8
call fcn.100350cb
add esp, 4
cmp dword [0x1007dca8], 0xffffffff
jne 0x1001337e
mov dword [ebp - 4], 0
push 0x1003aad0
mov dword [0x1007dc90], 0
mov dword [0x1007dc94], 0
mov dword [0x1007dc98], 0
mov dword [0x1007dc9c], 0
mov byte [0x1007dca0], 0
mov dword [0x1007dca4], 0
call fcn.10034f6d
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1007dca8
call fcn.10035081
add esp, 4
call fcn.10012a50
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [eax + 0x1c]
call esi
cmp dword [0x1007dca4], 0
jne 0x100138e4
push 1
push 1
push 1
push 0x400
mov ecx, 0x1007dc90
call fcn.10016960
sub esp, 0xc
lea ecx, [ebp - 0x58]
push 0x400
call fcn.10016b40
mov dword [ebp - 4], 1
sub esp, 0xc
lea ecx, [ebp - 0x40]
push 0x100
call fcn.10016b40
mov byte [ebp - 4], 2
call fcn.10012a50
push 0xffffffffffffffff
push dword [eax + 0x18]
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x18]
mov ecx, eax
shl ecx, 4
sub ecx, eax
movzx eax, word [ebp - 0x16]
lea eax, [eax + ecx*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
movzx eax, word [ebp - 0x14]
lea eax, [eax + ecx*4]
imul esi, eax, 0x3e8
movzx eax, word [ebp - 0x12]
add esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
add eax, esi
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
xor esi, esi
lea ebx, [esi + 3]
lea edi, [esi + 0x1a]
nop dword [eax]
movsd xmm0, qword [0x100756b8]
call fcn.10012c90
cvttsd2si eax, xmm0
movsd xmm0, qword [0x100756b8]
cdq
idiv ebx
test edx, edx
jne 0x10013476
call fcn.10012c90
cvttsd2si eax, xmm0
mov ecx, 0xa
cdq
idiv ecx
add edx, 0x30
jmp 0x1001349b
cmp edx, 1
jne 0x1001348c
call fcn.10012c90
cvttsd2si eax, xmm0
cdq
idiv edi
add edx, 0x61
jmp 0x1001349b
call fcn.10012c90
cvttsd2si eax, xmm0
cdq
idiv edi
add edx, 0x41
mov byte [esi + 0x1007dcac], dl
inc esi
cmp esi, 8
jb 0x10013440
call fcn.10012a50
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [ebp - 0x2c]
push 0x1007dcac
push str._s.tmp
push dword [ebp - 0x40]
push edi
call fcn.10012360
push 0x10073764
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, dword [ebp - 0x44]
add esp, 0x14
mov ebx, dword [ebp - 0x58]
test eax, eax
jne 0x1001354b
push str.TEMP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001359d
cmp byte [eax], 0
je 0x1001354b
push 0x104
call fcn.10035ceb
add esp, 4
mov dword [ebp - 0x24], eax
push 0x104
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x1001353d
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x10013530
push dword [ebp - 0x24]
call fcn.10034f90
mov eax, dword [ebp - 0x28]
add esp, 4
push eax
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001359d
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push str.C:WINNTTemp
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100135f3
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push str.C:WINDOWSTemp
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10013649
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push str.C:Temp
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001369f
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push 0x100737a0
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100136f5
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push str.D:WINNTTemp
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001374b
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push str.D:WINDOWSTemp
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100137a1
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push str.D:Temp
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100137f7
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
push 0x100737cc
push 0x10073238
push dword [0x1007dc90]
push dword [0x1007dca4]
call fcn.10012360
push edi
push 0x5c
push dword [0x1007dca4]
push str._s_c_s
push ebx
push esi
call fcn.10012360
add esp, 0x28
mov edx, 0x100732b8
mov ecx, esi
call fcn.10013180
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001384a
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ebx, dword [ebp - 0x24]
jmp 0x1001387f
mov eax, dword [0x1007dca4]
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, 0x100732b8
mov ecx, esi
call fcn.10013180
mov ebx, eax
test ebx, ebx
je 0x10013913
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp ebx, eax
je 0x100138b1
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp ebx, eax
je 0x100138b1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test eax, eax
je 0x100138b1
push eax
push str.cimg::fclose__:_Error_code__d_returned_during_file_closing.
call fcn.10012bf0
add esp, 8
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x30], 0
jne 0x100138ce
push edi
call fcn.10034f90
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x48], 0
jne 0x100138e4
push esi
call fcn.10034f90
add esp, 4
call fcn.10012a50
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1007dca4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret
xor edx, edx
lea ecx, [edx + 7]
call fcn.10012bb0
lea eax, [ebp - 0x20]
push str.cimg::temporary_path__:_Failed_to_locate_path_for_writing_temporary_files._n
push eax
call fcn.100128f0
add esp, 8
lea eax, [ebp - 0x20]
push 0x1007b0e4
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3