Function at 0x40d3c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144e6
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x41b048]
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 0x40d401
mov eax, dword [esi]
push 0x100
lea ecx, [ebp - 0x618]
push ecx
push 0x100
lea ecx, [ebp - 0x218]
push ecx
push 0x100
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 0x40d6c7
cmp dword [ebx + 0x10], 5
lea eax, [ebx + 0x10]
mov dword [ebp - 0x89c], eax
jb 0x40d6c7
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d460
sub ecx, edx
sar ecx, 1
je 0x40d6c7
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d480
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407e20
push str.AcroBrwEx
lea ecx, [ebp - 0x648]
call fcn.0040a370
push 0x41651c
lea ecx, [ebp - 0x630]
mov dword [ebp - 4], 0
call fcn.0040a370
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 0x40d4d0
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407e20
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.00407e20
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.00407e20
cmp dword [ebx + 0x14], 8
jb 0x40d53a
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x89c]
mov ecx, edi
push dword [eax]
push ebx
call fcn.00407e20
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.00407e20
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d575
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407e20
lea ecx, [ebp - 0x618]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5a0
sub ecx, edx
lea eax, [ebp - 0x618]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407e20
cmp dword [edi + 0x10], 0x104
ja 0x40d67a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40d5d5
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40d5df
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40d67a
push 0x250
lea eax, [ebp - 0x898]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40d60d
mov edi, dword [edi]
lea eax, [ebp - 0x898]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40d67a
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 0x40d647
mov eax, dword [esi]
lea ecx, [ebp - 0x898]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40d676
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d66b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d661
mov bl, 1
jmp 0x40d67c
xor bl, bl
mov eax, dword [ebp - 0x61c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x40d69e
inc eax
lea ecx, [ebp - 0x630]
push eax
push dword [ebp - 0x630]
call fcn.00408080
mov ecx, dword [ebp - 0x634]
mov dword [ebp - 4], 3
cmp ecx, 8
jb 0x40d6c3
inc ecx
push ecx
push dword [ebp - 0x648]
lea ecx, [ebp - 0x648]
call fcn.00408080
mov al, bl
jmp 0x40d6c9
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.00411ce0
mov esp, ebp
pop ebp
ret