Function at 0x42acf0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f21c
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4411c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
call fcn.004012b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004012b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
add ecx, 0x350
call fcn.00403b30
movzx eax, al
test eax, eax
je 0x42ad99
push str.PCTempDir_is_empty.
call fcn.0042a070
add esp, 4
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x54]
jmp 0x42b3ee
push str.Temp
mov ecx, dword [ebp - 0x118]
add ecx, 0x350
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.00403570
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 2
push 0x438380
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.00403570
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call fcn.00401360
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00401360
lea ecx, [ebp - 0x2c]
call fcn.004014a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x2c]
call fcn.004014a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x42ae62
cmp dword [ebp - 0x30], 0x50
je 0x42ae62
cmp dword [ebp - 0x30], 0xb7
jne 0x42ae7a
lea ecx, [ebp - 0x2c]
call fcn.004014a0
push eax
push 0x43838c
call fcn.0042a0d0
add esp, 8
jmp 0x42aecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004014a0
push eax
push 0x4383b0
call fcn.0042a070
add esp, 0xc
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x90]
jmp 0x42b3ee
lea ecx, [ebp - 0x50]
call fcn.00403b30
mov eax, dword [ebp - 0x118]
add eax, 0x78
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xac]
push edx
call fcn.00403600
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00401360
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x118]
add ecx, 0x2ac
call fcn.00403b30
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x42af79
cmp dword [ebp - 0x30], 0x50
je 0x42af79
cmp dword [ebp - 0x30], 0xb7
jne 0x42afbc
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0x4383e4
call fcn.0042a0d0
add esp, 8
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x118]
add ecx, 0x2ac
call fcn.00401380
push 0x438408
mov ecx, dword [ebp - 0x118]
add ecx, 0x2ac
call fcn.00401750
jmp 0x42b00f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0x43840c
call fcn.0042a070
add esp, 0xc
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0xb0]
jmp 0x42b3ee
lea ecx, [ebp - 0x50]
call fcn.00403b30
push str.ThirdParty
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.00403570
add esp, 0xc
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.00401360
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x118]
add ecx, 0x2c8
call fcn.00403b30
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x42b0b6
cmp dword [ebp - 0x30], 0x50
je 0x42b0b6
cmp dword [ebp - 0x30], 0xb7
jne 0x42b0f9
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0x43844c
call fcn.0042a0d0
add esp, 8
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x118]
add ecx, 0x2c8
call fcn.00401380
push 0x438470
mov ecx, dword [ebp - 0x118]
add ecx, 0x2c8
call fcn.00401750
jmp 0x42b14c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0x438474
call fcn.0042a070
add esp, 0xc
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0xd0]
jmp 0x42b3ee
lea ecx, [ebp - 0x50]
call fcn.00403b30
push str.Driver
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xec]
push edx
call fcn.00403570
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.00401360
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x118]
add ecx, 0x2e4
call fcn.00403b30
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x42b1f3
cmp dword [ebp - 0x30], 0x50
je 0x42b1f3
cmp dword [ebp - 0x30], 0xb7
jne 0x42b236
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push str.Create_Temp_Dir_Name:__s__SUC...
call fcn.0042a0d0
add esp, 8
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x118]
add ecx, 0x2e4
call fcn.00401380
push 0x4384d4
mov ecx, dword [ebp - 0x118]
add ecx, 0x2e4
call fcn.00401750
jmp 0x42b289
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push str.Create_Temp_Dir_Name:__s__Failed...Error_Code:_d
call fcn.0042a070
add esp, 0xc
mov dword [ebp - 0xf0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0xf0]
jmp 0x42b3ee
lea ecx, [ebp - 0x50]
call fcn.00403b30
push str.SDThirdParty
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00403570
add esp, 0xc
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c]
call fcn.00401360
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x118]
add ecx, 0x2c8
call fcn.00403b30
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x42b330
cmp dword [ebp - 0x30], 0x50
je 0x42b330
cmp dword [ebp - 0x30], 0xb7
jne 0x42b373
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push str.Create_Temp_Dir_Name:_s__SUC
call fcn.0042a0d0
add esp, 8
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x118]
add ecx, 0x2c8
call fcn.00401380
push 0x43853c
mov ecx, dword [ebp - 0x118]
add ecx, 0x2c8
call fcn.00401750
jmp 0x42b3c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.004014a0
push eax
push str.Create_Temp_Dir_Name:__s__Failed.._Error_Code:_d
call fcn.0042a070
add esp, 0xc
mov dword [ebp - 0x110], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x110]
jmp 0x42b3ee
mov dword [ebp - 0x114], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401360
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407a6c
mov esp, ebp
pop ebp
ret