Function at 0x4161ef
Capabilities:
Delete file

Disassembly:
mov eax, 0x44d959
call fcn.0044b2e0
sub esp, 0x54
mov eax, dword [0x464b24]
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esi + 0x30], ecx
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x416408
push ebx
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esi + 0x30]
mov ebx, dword [eax + 8]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
push str.param
mov ecx, ebx
call fcn.0040b3a1
push dword [ebp - 0x58]
lea ecx, [ebp - 0x34]
call fcn.00403779
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0x45276c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00403aaa
mov eax, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0040b3a1
push dword [ebp - 0x38]
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00403779
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00409412
push eax
lea ecx, [ebp - 0x40]
call fcn.00403779
mov dword [ebp - 0x24], eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040c77f
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403779
push dword [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00409d75
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.004021db
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.004021db
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.00420fb9
test al, al
pop ecx
pop ecx
jne 0x416311
and dword [ebp - 0x24], 0
push 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0041f45d
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.004118b2
lea ecx, [ebp - 0x28]
call fcn.004118b2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004069ac
test al, al
pop ecx
pop ecx
je 0x41634e
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jne 0x416376
mov ebx, dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
add ecx, 0xfffffff0
mov dword [esi + 0x30], eax
call fcn.004021db
lea ecx, [ebx - 0x10]
jmp 0x4163cc
push 0
push dword [ebp - 0x34]
mov ecx, esi
push dword [ebp - 0x30]
call fcn.004160cf
test eax, eax
push ebx
jne 0x4163a5
push 1
call fcn.004174a8
mov ecx, eax
call fcn.00417583
call fcn.0040f126
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx]
jmp 0x4163b3
push 0
call fcn.004174a8
mov ecx, eax
call fcn.00417583
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
add ecx, 0xfffffff0
mov dword [esi + 0x30], eax
call fcn.004021db
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004021db
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004021db
lea eax, [ebp - 0x50]
push eax
call edi
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004021db
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x60]
push eax
call edi
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
cmp ecx, dword [eax + 4]
jne 0x416227
pop edi
pop ebx
and dword [esi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0044b2c4
leave
ret