Function at 0x42ad77
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 0x1c], 0xffffffff
mov eax, edx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov ebx, edi
mov dword [ebp - 0x10], edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], edi
test ecx, ecx
jne 0x42adb6
mov eax, 0x80070057
mov esi, eax
push eax
call fcn.004321e3
jmp 0x42b05e
test eax, eax
je 0x42ada4
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x42ada4
test edx, edx
je 0x42b05e
test ebx, ebx
je 0x42addb
push ebx
call fcn.0043220c
and dword [ebp - 0x18], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
xor edx, edx
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [eax + edi*4]
call fcn.00431805
mov esi, eax
test esi, esi
js 0x42b055
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.004317d0
mov esi, eax
test esi, esi
js 0x42b04f
cmp dword [ebp - 0x10], 0
jne 0x42ae4d
mov eax, dword [0x48ecb8]
test eax, eax
je 0x42ae25
cmp eax, 0xffffffff
jne 0x42ae27
xor eax, eax
push ebx
push 0x40a988
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
mov ecx, ebx
call fcn.0043157f
mov esi, eax
test esi, esi
js 0x42b04f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42ae5e
push eax
call fcn.0043220c
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push 0
push 0
push ecx
mov eax, dword [eax + 8]
xor edx, edx
mov ecx, dword [eax + edi*4]
call fcn.00431805
mov esi, eax
test esi, esi
js 0x42b04f
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.004317d0
mov esi, eax
test esi, esi
js 0x42b04f
cmp dword [ebp - 0x10], 0
jne 0x42aed4
mov eax, dword [0x48ecb8]
test eax, eax
je 0x42aea9
cmp eax, 0xffffffff
jne 0x42aeab
xor eax, eax
mov esi, dword [ebp - 0xc]
push esi
push 0x40a9c8
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
mov ecx, esi
call fcn.0043157f
mov esi, eax
test esi, esi
js 0x42b04f
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax + edi*4]
call fcn.00431799
mov esi, eax
test esi, esi
js 0x42b04f
cmp dword [ebp - 0x14], 0
je 0x42af37
mov esi, dword [ebp - 4]
mov ecx, dword [0x48ecb8]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x42af0a
cmp ecx, 0xffffffff
jne 0x42af0c
xor ecx, ecx
push dword [eax + edi*4]
push 0x40aa0c
push dword [0x491330]
push ecx
call fcn.0041aecf
mov eax, dword [esi + 8]
add esp, 0x10
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42b041
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax + edi*4]
call fcn.00431799
mov esi, eax
test esi, esi
js 0x42b04f
cmp dword [ebp - 0x14], 0
je 0x42af9a
mov esi, dword [ebp - 8]
mov ecx, dword [0x48ecb8]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x42af6d
cmp ecx, 0xffffffff
jne 0x42af6f
xor ecx, ecx
push dword [eax + edi*4]
push 0x40aa0c
push dword [0x491330]
push ecx
call fcn.0041aecf
mov eax, dword [esi + 8]
add esp, 0x10
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42b041
mov esi, dword [ebp - 4]
mov ecx, dword [0x48ecb8]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x42afaf
cmp ecx, 0xffffffff
jne 0x42afb1
xor ecx, ecx
push dword [eax + edi*4]
push 0x40aa38
push dword [0x491330]
push ecx
call fcn.0041aecf
mov eax, dword [esi + 8]
lea edx, [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [eax + edi*4]
call fcn.00430a35
mov esi, eax
test esi, esi
js 0x42b04f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [0x48ecb8]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 8]
test edx, edx
je 0x42aff7
cmp edx, 0xffffffff
jne 0x42aff9
xor edx, edx
push dword [eax + edi*4]
push dword [ecx + edi*4]
push 0x40aa68
push dword [0x491330]
push edx
call fcn.0041aecf
mov eax, dword [ebp - 4]
add esp, 0x14
mov eax, dword [eax + 8]
push 0
mov ecx, dword [eax + edi*4]
mov eax, dword [ebp - 8]
push ecx
mov eax, dword [eax + 8]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkW]
test al, al
je 0x42b041
mov ecx, dword [ebp - 8]
inc edi
cmp edi, dword [ecx + 4]
jb 0x42adca
jmp 0x42b05e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
push esi
jmp 0x42adac
push esi
call fcn.004321e3
mov ebx, dword [ebp - 0x18]
push esi
call fcn.00432150
lea ecx, [ebp - 0x1c]
call fcn.0043239d
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x42b079
push eax
call fcn.0043220c
test ebx, ebx
je 0x42b083
push ebx
call fcn.0043220c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret