Function at 0x2e01174d
Capabilities:
Create directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x2e022064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x420], 0xffffffff
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0x430], eax
xor eax, eax
lea edi, [ebp - 0x440]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x41c]
xor esi, esi
push eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.2e01fd06
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
cmp dword [ebp - 0x41c], esi
je 0x2e011914
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x2e011801
call edi
mov esi, eax
test esi, esi
jle 0x2e0117f9
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e011a63
jmp 0x2e011807
mov esi, dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x2e0022c8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x2e01183e
call edi
mov esi, eax
test esi, esi
jle 0x2e011838
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e011a63
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x2e011867
call edi
mov esi, eax
test esi, esi
jle 0x2e011861
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e011a63
lea eax, [ebp - 0x440]
push eax
call fcn.2e011358
test eax, eax
jne 0x2e01188f
call edi
mov esi, eax
test esi, esi
jle 0x2e011889
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e011a63
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x2e0118cb
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
mov esi, eax
test esi, esi
jle 0x2e0118c5
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e011a63
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x2e0118d4
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x2e011942
push 0xffffffffffffffff
push 0x2e0017b0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.2e01431e
add esp, 0x10
mov esi, eax
test esi, esi
jl 0x2e011a63
jmp 0x2e011942
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x2e01193c
call edi
mov esi, eax
test esi, esi
jle 0x2e01190c
and esi, 0xffff
or esi, ebx
jmp 0x2e01190a
mov esi, dword [ebp - 0x41c]
and dword [ebp - 0x424], 0
cmp dword [ebp - 0x420], 0xffffffff
jne 0x2e011a1b
push dword [ebp - 0x434]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x418]
push 0x2e0022b0
push eax
call fcn.2e01103c
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x2e011a63
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, 0xffffffff
jne 0x2e0119db
call edi
test eax, eax
jle 0x2e0119c3
and eax, 0xffff
or eax, ebx
mov esi, eax
cmp esi, 0x80070050
jne 0x2e0119d1
xor esi, esi
jmp 0x2e011a05
test esi, esi
jl 0x2e011a63
jmp 0x2e011a05
push 4
push 0
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x41c], 0
je 0x2e011a05
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
inc dword [ebp - 0x424]
cmp dword [ebp - 0x424], 0x3e8
jl 0x2e011949
mov ecx, dword [ebp - 0x430]
test ecx, ecx
je 0x2e011a2d
mov eax, dword [ebp - 0x420]
mov dword [ecx], eax
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x2e011a46
mov edx, dword [ebp - 0x418]
and dword [ebp - 0x418], 0
mov dword [eax], edx
test esi, esi
jl 0x2e011a4e
test ecx, ecx
jne 0x2e011a63
cmp dword [ebp - 0x420], 0xffffffff
je 0x2e011a63
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x418], 0
je 0x2e011a77
push dword [ebp - 0x418]
call fcn.2e010d00
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e0142db
leave
ret 0x10