Function at 0x407ad0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595d20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
cmp edi, eax
je 0x407b5a
lea ecx, [ecx]
mov esi, dword [edi]
test esi, esi
je 0x407b50
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00416e00
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
sete byte [ebp - 0xd]
test eax, eax
je 0x407b3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
cmp byte [ebp - 0xd], 0
jne 0x407c09
mov eax, dword [ebp - 0x20]
add edi, 4
cmp edi, eax
jne 0x407b10
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x407d88
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
je 0x407f96
lea ebx, [ebx]
mov edi, dword [eax]
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x407baf
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00416e00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x407be0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x407c13
cmp ecx, dword [esi]
jne 0x407c13
mov eax, 1
lock xadd dword [edx], eax
jmp 0x407c57
mov esi, 1
jmp 0x408205
mov eax, dword [ecx]
push 2
push dword [esi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
je 0x407d83
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00551ae9
mov esi, dword [ebp + 0xc]
add esp, 0x10
add esi, 0x10
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 6
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407c85
push 0x104
lea ecx, [ebp + 0xc]
call fcn.0040c110
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x407d79
cmp eax, dword [esi - 8]
jg 0x407d79
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00416e00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407d02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x407d13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 0xfffffff0
mov byte [ebp - 4], 5
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407d31
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407d52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test edi, edi
je 0x407d60
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jne 0x407ba0
xor esi, esi
jmp 0x4081e4
push 0x80070057
call fcn.0040c390
call fcn.0040c3b0
lea eax, [ebp - 0x14]
push eax
call fcn.00408230
test eax, eax
je 0x407f7f
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x407f96
lea esp, [esp]
mov edi, dword [eax]
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x407dbf
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00416e00
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x407df0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x407e19
cmp ecx, dword [esi]
jne 0x407e19
mov eax, 1
lock xadd dword [edx], eax
jmp 0x407e5d
mov eax, dword [ecx]
push 2
push dword [esi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
je 0x407d83
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00551ae9
mov esi, dword [ebp + 0xc]
add esp, 0x10
add esi, 0x10
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 0xc
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x407e8b
push 0x104
lea ecx, [ebp + 0xc]
call fcn.0040c110
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x407d79
cmp eax, dword [esi - 8]
jg 0x407d79
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.00416e00
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x28]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407f08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x407f19
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407f37
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407f58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test edi, edi
je 0x407f66
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x18]
jne 0x407db0
xor esi, esi
jmp 0x4081e4
push 0
lea ecx, [ebp - 0x20]
call fcn.004083d0
test eax, eax
je 0x407f9d
push esi
lea ecx, [ebp - 0x20]
call fcn.004083d0
xor esi, esi
jmp 0x4081e4
push str.::645FF040_5081_101B_9F08_00AA002F954E
push dword [ebp - 0x14]
call fcn.00551d79
add esp, 8
test eax, eax
jne 0x4081df
xor edi, edi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [esi]
mov dword [ebp - 0x18], edi
cmp esi, dword [eax + 4]
je 0x408036
mov edi, eax
lea esp, [esp]
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.00416e00
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
inc ecx
add edx, 0xfffffff0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40801b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40802c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 4
cmp esi, dword [edi + 4]
jne 0x407fd0
xor edi, edi
mov ecx, dword [ebp - 0x18]
xor eax, eax
lea ecx, [ecx + 2]
shld eax, ecx, 1
add ecx, ecx
test eax, eax
ja 0x4081d2
jb 0x408057
cmp ecx, 0xffffffff
ja 0x4081d2
push ecx
call fcn.00551ee7
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
test edi, edi
je 0x4081d2
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x1c], ecx
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x408199
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.00416e00
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov edx, dword [ebp - 0x2c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
inc eax
mov dword [ebp - 0x3c], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4080c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4080d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi]
lea eax, [ebp - 0x38]
push eax
call fcn.00416e00
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, ecx
sub eax, edi
sar eax, 1
sub edx, eax
je 0x408150
cmp edx, 0x7fffffff
ja 0x408150
mov eax, SysReAllocString
sub eax, edx
mov dword [ebp - 0x24], eax
mov eax, ecx
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, edx
je 0x408144
mov eax, dword [ebp - 0x20]
movzx eax, word [ecx + eax]
test ax, ax
je 0x408144
mov word [ecx], ax
add ecx, 2
mov eax, dword [ebp - 0x24]
dec edx
jne 0x408126
jmp 0x408148
test edx, edx
jne 0x40814b
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov edx, dword [ebp - 0x34]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40816d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40817e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
add esi, 4
mov eax, dword [ebp - 0x3c]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
cmp esi, dword [eax + 4]
jne 0x408080
xor eax, eax
xorps xmm0, xmm0
mov word [ecx], ax
movdqu xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x40], ax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], eax
mov eax, 0x41
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x5c]
push eax
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
call fcn.00551f79
add esp, 4
xor esi, esi
jmp 0x4081e4
mov esi, 1
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408205
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x408219
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8