Function at 0x411650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x480698
push eax
mov dword fs:[0], esp
sub esp, 0x80
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
sete al
test al, al
je 0x41168f
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
push edi
jb 0x41169a
mov edi, dword [esi]
jmp 0x41169c
mov edi, esi
test edi, edi
je 0x4118c7
cmp byte [edi], 0
je 0x4118c7
push 0x38
lea eax, [ebp - 0x8c]
push 0
push eax
call fcn.00434830
lea eax, [ebp - 0x8c]
push eax
push edi
call fcn.00420940
and eax, edx
add esp, 0x14
cmp eax, 0xffffffff
je 0x4118c7
cmp dword [esi + 0x14], 0x10
jb 0x4116e2
mov eax, dword [esi]
jmp 0x4116e4
mov eax, esi
push ebx
push eax
call fcn.00441b70
mov edi, eax
add esp, 4
test edi, edi
jns 0x411718
cmp dword [esi + 0x14], 0x10
jb 0x4116fe
mov eax, dword [esi]
jmp 0x411700
mov eax, esi
push eax
call fcn.00441b65
mov edi, eax
add esp, 4
test edi, edi
jns 0x411718
call fcn.0043f9cb
mov ebx, dword [eax]
jmp 0x41171b
or ebx, 0xffffffff
test edi, edi
jns 0x41174c
cmp dword [esi + 0x14], 0x10
jb 0x411729
mov eax, dword [esi]
jmp 0x41172b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
test edi, edi
jns 0x41174c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0043f9cb
mov dword [eax], ebx
call fcn.0040c290
push str.log_file_deletes
lea ecx, [eax + 0x520]
call fcn.0040c0e0
test al, al
je 0x4118b4
test edi, edi
jns 0x411835
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004084a0
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x4a9a88
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x4117ab
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.DEBUG:_could_not_remove__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4117d6
mov esi, dword [esi]
push esi
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486650
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
cmp dword [ebx + 0x14], 0x10
jb 0x4117fd
mov ebx, dword [ebx]
push ebx
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.004058c0
lea ecx, [ebp - 0x3c]
call fcn.004058c0
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x41185c
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.DEBUG:_Removed_path__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x411887
mov esi, dword [esi]
push esi
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486730
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x1c
lea ecx, [ebp - 0x54]
call fcn.004058c0
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret