Function at 0x407d50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569a7d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5cce5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
push eax
push 0x5a8efc
push 1
push 0
push 0x5a8f6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407f51
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004027a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00408010
push 0x57cba0
push dword [eax]
call fcn.0054bf9c
mov edx, dword [ebp - 0x14]
add esp, 8
test eax, eax
setne byte [ebp + 0xb]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407df7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x407e0c
push 1
push 0x57cba4
lea ecx, [ebp - 0x10]
call fcn.00402690
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00402690
push 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408010
mov edi, eax
mov edx, dword [edi]
mov byte [ebp - 4], 1
mov esi, dword [edx - 0xc]
test esi, esi
js 0x407f67
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x407e59
push esi
mov ecx, edi
call fcn.004029e0
mov edx, dword [edi]
lea eax, [esi + 1]
push eax
push edx
call fcn.0054f252
push eax
call fcn.00407f80
mov eax, dword [edi]
add esp, 0xc
cmp esi, dword [eax - 8]
jg 0x407f67
mov dword [eax - 0xc], esi
mov eax, dword [edi]
push 0x57cba8
mov byte [esi + eax], 0
push dword [edi]
call fcn.0054bf9c
mov edx, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
mov eax, ebx
setne byte [ebp + 0xb]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407eb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x407ec8
push 4
push str..lnk
lea ecx, [ebp - 0x10]
call fcn.00402690
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
push dword [eax]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ecx, dword [esi]
mov eax, dword [ebp + 0x14]
mov edx, dword [ecx]
push dword [eax]
push ecx
call dword [edx + 0x2c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea ecx, [ebp - 0x20]
call fcn.00407c80
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00407ca0
mov byte [ebp + 0xb], al
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
test edx, edx
je 0x407f1b
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x407f3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00402780
int3