Function at 0x45b670
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48686d
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4bc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x108], ecx
call fcn.00403ac0
mov ecx, eax
test ecx, ecx
je 0x45be78
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x100], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
push str.C:windowsiassistlogsRegRead.txt
lea ecx, [ebp - 0xfc]
call fcn.00402680
mov byte [ebp - 4], 3
push 0x496ca8
push dword [ebp - 0xfc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov esi, eax
test esi, esi
je 0x45b717
push esi
push 0x64
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x10
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00402680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf8]
call fcn.004027e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf4]
call fcn.004027e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf0]
call fcn.004027e0
mov byte [ebp - 4], 7
push ecx
push 0x49a8d0
lea ecx, [ebp - 0xe4]
call fcn.0045f840
mov ebx, eax
mov dword [ebp - 0x104], ebx
test ebx, ebx
js 0x45b8cf
push ebx
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0045f460
mov byte [ebp - 4], 8
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0xf8]
add edi, 0xfffffff0
cmp ecx, edi
je 0x45b7ff
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x45b7ea
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x45b7ea
call fcn.00403090
mov dword [ebp - 0xe8], eax
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45b7d9
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0xe8]
add eax, 0x10
mov dword [ebp - 0xf8], eax
mov ebx, dword [ebp - 0x104]
jmp 0x45b802
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0xf8]
call fcn.004030f0
mov ebx, dword [ebp - 0x104]
or esi, 0xffffffff
mov byte [ebp - 4], 9
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe0]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b827
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax - 0xc]
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0045f570
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0xe4]
add edi, 0xfffffff0
cmp ecx, edi
je 0x45b8a8
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x45b899
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x45b899
call fcn.00403090
mov dword [ebp - 0xe0], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45b88e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0xe0]
add eax, 0x10
mov dword [ebp - 0xe4], eax
jmp 0x45b8a8
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0xe4]
call fcn.004030f0
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b8d2
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x45b8d2
or esi, 0xffffffff
push ecx
lea ecx, [ebp - 0xe4]
call fcn.0045f810
test eax, eax
js 0x45b98c
mov ecx, dword [ebp - 0xe4]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0045f570
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0xf0]
add edi, 0xfffffff0
cmp ecx, edi
je 0x45b967
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x45b958
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x45b958
call fcn.00403090
mov dword [ebp - 0xe0], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45b94d
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0xe0]
add eax, 0x10
mov dword [ebp - 0xf0], eax
jmp 0x45b967
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0xf0]
call fcn.004030f0
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45b98c
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push ecx
lea ecx, [ebp - 0xe4]
call fcn.0045f810
push eax
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0045f460
mov byte [ebp - 4], 0xe
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov edi, dword [ebp - 0xf4]
add edi, 0xfffffff0
cmp ecx, edi
je 0x45ba0d
lea ebx, [edi + 0xc]
cmp dword [ebx], 0
jl 0x45b9fe
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x45b9fe
call fcn.00403090
mov dword [ebp - 0xe0], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45b9f3
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [ebp - 0xe0]
add eax, 0x10
mov dword [ebp - 0xf4], eax
jmp 0x45ba0d
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0xf4]
call fcn.004030f0
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ba32
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push ecx
mov dword [ebp - 0xe8], esp
mov dword [ebp - 0xe0], esp
mov edi, dword [ebp - 0xf0]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [edi - 4]
cmp dword [eax], 0
jl 0x45ba64
cmp ecx, dword [edi - 0x10]
jne 0x45ba64
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x45ba8e
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x45be82
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004031f0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0xe0]
mov dword [ecx], eax
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0x11
push ecx
mov dword [ebp - 0x104], esp
mov dword [ebp - 0xe0], esp
mov edi, dword [ebp - 0xf4]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [edi - 4]
cmp dword [eax], 0
jl 0x45bad3
cmp ecx, dword [edi - 0x10]
jne 0x45bad3
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x45bafd
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x45be87
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004031f0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0xe0]
mov dword [ecx], eax
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 7
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xec]
call fcn.0046c730
add esp, 8
mov byte [ebp - 4], 0x14
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x498c68
push dword [ebp - 0xfc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x45bb68
push edi
push dword [ebp - 0xec]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0xc
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xec]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bb8d
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bbb2
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xf4]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bbd7
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xf8]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bbfc
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe4]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bc21
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xfc]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45bc46
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 1
jmp 0x45bd4e
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x100]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45bd70
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00471083
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403880
call fcn.004031e0
call fcn.004031e0
call fcn.004031e0
call fcn.004031e0
int3