Function at 0x10065a20
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [ebp + 8]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 0x10]
mov dword [0x101bee44], eax
mov esi, dword [0x101bee38]
test esi, esi
je 0x10065b29
mov dword [ebp - 0x1c], 0x101a3782
mov dword [ebp - 0x18], 1
lea edi, [esi + 0x18]
lea ebx, [esi + 0x1c]
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x28]
mov ecx, edi
push eax
push edx
call fcn.1005d390
cmp dword [ebp - 0x28], ebx
jne 0x10065a9d
mov dword [ebp - 0x1c], str.vmodule
mov dword [ebp - 0x18], 7
mov ecx, edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1005d390
cmp dword [ebp - 0x28], ebx
je 0x10065b29
mov ecx, esi
push 7
push str.vmodule
lea edi, [ebp - 0x1c]
push edi
call fcn.1005ae90
mov ecx, esi
push 1
push 0x101a3782
lea ebx, [ebp - 0x28]
push ebx
call fcn.1005ae90
push 0x10
call fcn.10145ba4
add esp, 4
mov esi, eax
mov ecx, eax
push 0x101bee4c
push edi
push ebx
call fcn.100a3040
cmp byte [ebp - 0x1d], 0
js 0x10065aed
cmp byte [ebp - 0x11], 0
js 0x10065afe
test esi, esi
jne 0x10065b0d
jmp 0x10065b29
push dword [ebp - 0x28]
call fcn.10145bd4
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x10065ae7
push dword [ebp - 0x1c]
call fcn.10145bd4
add esp, 4
test esi, esi
je 0x10065b29
xor eax, eax
lock cmpxchg dword [0x101bee54], esi
je 0x10065b29
mov ecx, esi
call fcn.100a3640
push esi
call fcn.10145bd4
add esp, 4
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov dword [0x101bac40], eax
test al, 1
jne 0x10065b4b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov al, 1
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x101bee50]
test eax, eax
je 0x10065b78
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101bee50], 0
mov esi, dword [0x101bee48]
test esi, esi
jne 0x10065ba7
and byte [0x101bac40], 0xfe
jmp 0x10065b82
mov esi, dword [0x101bee48]
test esi, esi
jne 0x10065ba7
push 0xc
call fcn.10145ba4
add esp, 4
mov esi, eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [0x101bee48], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x10065c77
push edi
call fcn.10163aa4
add esp, 4
movzx ecx, byte [esi + 0xb]
test cl, cl
js 0x10065bd1
mov edx, esi
cmp eax, 4
jbe 0x10065c07
mov edx, 4
jmp 0x10065be1
mov edx, 0x7fffffff
and edx, dword [esi + 8]
dec edx
cmp edx, eax
jae 0x10065c05
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
mov ebx, eax
sub ebx, edx
mov ecx, esi
push edi
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
push eax
push ebx
push edx
call fcn.100569b6
mov ebx, dword [ebp - 0x30]
cmp dword [ebx + 0xc], 0
jne 0x10065c61
jmp 0x10065c4d
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
lea ecx, [eax + eax]
push ecx
push edi
push edx
mov edi, eax
call fcn.10148eb0
add esp, 0xc
cmp byte [esi + 0xb], 0
js 0x10065c3b
mov ecx, dword [ebp - 0x2c]
cmp edi, 5
jae 0x10065c7a
mov eax, edi
mov byte [esi + 0xb], al
mov word [ecx + edi*2], 0
cmp dword [ebx + 0xc], 0
jne 0x10065c61
jmp 0x10065c4d
mov dword [esi + 4], edi
mov eax, dword [ebp - 0x2c]
mov word [eax + edi*2], 0
cmp dword [ebx + 0xc], 0
jne 0x10065c61
mov eax, dword [0x101bee48]
cmp byte [eax + 0xb], 0
jns 0x10065c5a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10065c80
int3
int3