Function at 0x40c820
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4139e6
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x41b044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x38]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x618]
push 0x100
push ecx
push 0x100
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
push ecx
push 0x100
lea ecx, [ebp - 0x418]
push ecx
push 3
lea ecx, [ebp - 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
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 0x40cb57
cmp dword [ebp + 0x30], 5
jb 0x40cb57
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c8b1
sub ecx, edx
sar ecx, 1
je 0x40cb57
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c8d0
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407350
push str.AcroBrwEx
lea ecx, [ebp - 0x648]
call fcn.00409790
push 0x4162a0
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 8
call fcn.00409790
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 9
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c920
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407350
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
push dword [ebp - 0x638]
cmovae eax, dword [ebp - 0x648]
mov ecx, esi
push eax
call fcn.00407350
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
push dword [ebp - 0x620]
cmovae eax, dword [ebp - 0x630]
mov ecx, esi
push eax
call fcn.00407350
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
mov ecx, esi
push eax
call fcn.00407350
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
push dword [ebp - 0x620]
cmovae eax, dword [ebp - 0x630]
mov ecx, esi
push eax
call fcn.00407350
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c9c3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407350
lea ecx, [ebp - 0x618]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c9f0
sub ecx, edx
lea eax, [ebp - 0x618]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407350
cmp dword [esi + 0x10], 0x104
ja 0x40cacd
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40ca25
mov ecx, dword [esi]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40cacd
push 0x250
lea eax, [ebp - 0x898]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40ca5e
mov esi, dword [esi]
lea eax, [ebp - 0x898]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40cacd
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
lea ecx, [ebp - 0x898]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40cac9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40cab3
mov bl, 1
jmp 0x40cacf
xor bl, bl
mov edx, dword [ebp - 0x61c]
mov byte [ebp - 4], 0x16
cmp edx, 8
jb 0x40cb15
mov ecx, dword [ebp - 0x630]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cb0b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
mov edx, dword [ebp - 0x634]
mov byte [ebp - 4], 0x17
cmp edx, 8
jb 0x40cb59
mov ecx, dword [ebp - 0x648]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb89
push edx
push ecx
call fcn.004114a6
add esp, 8
jmp 0x40cb59
xor bl, bl
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 4], 0x18
cmp edx, 8
jb 0x40cb99
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cb8f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov edx, dword [ebp + 0x34]
mov dword [ebp - 4], 0x19
cmp edx, 8
jb 0x40cbf0
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbe6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cbe6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004114a6
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411460
mov esp, ebp
pop ebp
ret