Function at 0x40dec0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4152e6
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x41d048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x40df01
mov eax, dword [esi]
push pe_nt_image_headers32
lea ecx, [ebp - 0x618]
push ecx
push pe_nt_image_headers32
lea ecx, [ebp - 0x218]
push ecx
push pe_nt_image_headers32
lea ecx, [ebp - 0x418]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
test eax, eax
jne 0x40e1c7
cmp dword [ebx + 0x10], 5
lea eax, [ebx + 0x10]
mov dword [ebp - 0x89c], eax
jb 0x40e1c7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df60
sub ecx, edx
sar ecx, 1
je 0x40e1c7
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df80
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408390
push str.AcroBrwEx
lea ecx, [ebp - 0x648]
call fcn.0040a8e0
push 0x417694
lea ecx, [ebp - 0x630]
mov dword [ebp - 4], 0
call fcn.0040a8e0
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dfd0
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408390
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
push dword [ebp - 0x638]
cmovae eax, dword [ebp - 0x648]
mov ecx, edi
push eax
call fcn.00408390
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
push dword [ebp - 0x620]
cmovae eax, dword [ebp - 0x630]
mov ecx, edi
push eax
call fcn.00408390
cmp dword [ebx + 0x14], 8
jb 0x40e03a
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x89c]
mov ecx, edi
push dword [eax]
push ebx
call fcn.00408390
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
push dword [ebp - 0x620]
cmovae eax, dword [ebp - 0x630]
mov ecx, edi
push eax
call fcn.00408390
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e075
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408390
lea ecx, [ebp - 0x618]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e0a0
sub ecx, edx
lea eax, [ebp - 0x618]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408390
cmp dword [edi + 0x10], 0x104
ja 0x40e17a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40e0d5
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40e0df
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e17a
push 0x250
lea eax, [ebp - 0x898]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40e10d
mov edi, dword [edi]
lea eax, [ebp - 0x898]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40e17a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
lea eax, [ebp - 0x898]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e147
mov eax, dword [esi]
lea ecx, [ebp - 0x898]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40e176
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40e16b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e161
mov bl, 1
jmp 0x40e17c
xor bl, bl
mov eax, dword [ebp - 0x61c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x40e19e
inc eax
lea ecx, [ebp - 0x630]
push eax
push dword [ebp - 0x630]
call fcn.004085f0
mov ecx, dword [ebp - 0x634]
mov dword [ebp - 4], 3
cmp ecx, 8
jb 0x40e1c3
inc ecx
push ecx
push dword [ebp - 0x648]
lea ecx, [ebp - 0x648]
call fcn.004085f0
mov al, bl
jmp 0x40e1c9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004129c0
mov esp, ebp
pop ebp
ret