Function at 0x402820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417628
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x420024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x40285d
mov eax, dword [eax]
jmp 0x40285f
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x40287c
mov eax, dword [eax]
jmp 0x40287e
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
push eax
push 1
call dword [sym.imp.OLEAUT32.dll_VarDecSub]
test eax, eax
jns 0x4028aa
push 0
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.00401650
push 0x41f4b4
lea eax, [ebp - 0x30]
push eax
call fcn.00406964
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4028bb
push 0x80004003
call fcn.004042c0
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
push dword [ebp + 0x14]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x18], 0
call dword [ecx + 0x18]
test eax, eax
js 0x40288f
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4028fd
push 0x80004003
call fcn.004042c0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x40290f
mov edx, dword [ecx]
jmp 0x402911
xor edx, edx
mov ecx, dword [eax]
lea esi, [ebp - 0x10]
push esi
push 3
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40288f
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402937
push 0x80004003
call fcn.004042c0
mov ecx, dword [eax]
push 0x140
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40288f
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40295b
push 0x80004003
call fcn.004042c0
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x40288f
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402981
push 0x80004003
call fcn.004042c0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x40288f
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4029a5
push 0x80004003
call fcn.004042c0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40288f
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4029c5
push 0x80004003
call fcn.004042c0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
js 0x40288f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4029e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4029f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402a06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
or edi, 0xffffffff
test esi, esi
je 0x402a5a
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x402a53
test esi, esi
je 0x402a53
mov eax, dword [esi]
test eax, eax
je 0x402a31
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402a48
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
mov dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x402aa2
lock xadd dword [esi + 8], edi
dec edi
jne 0x402aa2
test esi, esi
je 0x402aa2
mov eax, dword [esi]
test eax, eax
je 0x402a80
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402a97
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret