Function at 0x46abd0
Capabilities:
Copy file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x284]
mov esi, dword [ebp + 8]
push 0x250
push 0
push eax
mov dword [ebp - 0x2ac], edi
call fcn.004a83c0
mov ecx, dword [esi]
add esp, 0xc
sub ecx, 0x10
call fcn.0041c670
lea ebx, [eax + 0x10]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 4], 0
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 1
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x46ac6c
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 2
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x46ac93
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x2a0], edi
push 1
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x294]
call fcn.0041c0e0
mov ecx, str.0s
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46ace6
test dx, dx
je 0x46ace2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46ace6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46acc0
xor eax, eax
jmp 0x46aceb
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x28c]
test eax, eax
setne byte [ebp - 0x285]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ad14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x285], 0
je 0x46ad35
push 1
push str.0s
lea ecx, [ebp - 0x294]
call fcn.0041c490
mov ebx, dword [ebp - 0x294]
push 1
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x29c]
call fcn.0041c0e0
mov ecx, str.0s
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46ad76
test dx, dx
je 0x46ad72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46ad76
add eax, 4
add ecx, 4
test dx, dx
jne 0x46ad50
xor eax, eax
jmp 0x46ad7b
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x28c]
test eax, eax
mov eax, esi
setne byte [ebp - 0x285]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ada1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x285], 0
je 0x46adbc
push 1
push str.0s
lea ecx, [ebp - 0x29c]
call fcn.0041c490
push 0x4ed44c
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x28c]
call fcn.0041c010
add esp, 4
push eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
call fcn.0041c6d0
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ae06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x28c], eax
cmp eax, 0xffffffff
jne 0x46ae47
push ebx
push 0x4f465c
push 0x515488
call fcn.0048cf90
add esp, 0xc
mov dword [ebp - 0x298], 0
jmp 0x46b175
mov dword [ebp - 0x298], 1
test byte [ebp - 0x284], 0x12
jne 0x46b127
lea eax, [ebp - 0x258]
push 0x2e
push eax
call fcn.004a7ff1
add esp, 8
test eax, eax
je 0x46b10e
mov ecx, str..dll
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46aea6
test dx, dx
je 0x46aea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46aea6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46ae80
xor eax, eax
jmp 0x46aeab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46b10e
mov eax, dword [ebp - 0x2ac]
push dword [eax]
lea eax, [ebp - 0x258]
push eax
push 0x4f46a8
push 0x515488
call fcn.0048cf90
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x2b0]
call fcn.0041c010
add esp, 0x14
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 5
call fcn.0041c6d0
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x2b0]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46af20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x294]
lea ecx, [ebp - 0x2b4]
call fcn.0041c010
add esp, 4
push eax
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 6
call fcn.0041c6d0
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x2b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46af6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp - 0x2a0]
push 0
push edi
je 0x46b0c4
call fcn.004af37c
mov esi, dword [ebp - 0x290]
add esp, 8
test eax, eax
je 0x46afb4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x46b127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x4f8b18
jmp 0x46b152
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b127
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x46b091
mov eax, dword [ebp - 0x2a8]
cmp dword [eax + 0x54], 2
jne 0x46b091
mov ecx, eax
mov dword [eax + 0x5c], 1
call fcn.00469780
test eax, eax
je 0x46b091
xor eax, eax
mov dword [ebp - 0x30], str.ucrtbase.dll
mov dword [ebp - 0x2c], str.msvcp140.dll
mov dword [ebp - 0x28], str.vcamp140.dll
mov dword [ebp - 0x24], str.vccorlib140.dll
mov dword [ebp - 0x20], str.vcomp140.dll
mov dword [ebp - 0x1c], str.vcruntime140.dll
mov dword [ebp - 0x18], str.concrt140.dll
mov dword [ebp - 0x2a4], eax
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + eax*4 - 0x30]
lea ecx, [ebp - 0x258]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x46b076
test dx, dx
je 0x46b072
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x46b076
add ecx, 4
add eax, 4
test dx, dx
jne 0x46b050
xor eax, eax
jmp 0x46b07b
sbb eax, eax
or eax, 1
test eax, eax
je 0x46b0b6
mov eax, dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x2a4], eax
cmp eax, 7
jb 0x46b040
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x46b127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x4f8c30
jmp 0x46b152
lea eax, [ebp - 0x258]
push eax
push str._vc_runtime__FFile_ws.
jmp 0x46b11a
mov esi, dword [ebp - 0x290]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b127
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46b0f8
cmp eax, 0x20
jne 0x46b144
mov eax, dword [ebp - 0x2a8]
cmp dword [eax + 0x54], 1
jne 0x46b0f8
mov dword [eax + 0x58], 1
push esi
push edi
push 0x4f8c98
push 0x515488
call fcn.0048cf90
add esp, 0x10
jmp 0x46b127
lea eax, [ebp - 0x258]
push eax
push 0x4f4688
push 0x515488
call fcn.0048cf90
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46ae51
jmp 0x46b169
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x4f8c68
push 0x515488
call fcn.0048cf90
add esp, 0x14
mov dword [ebp - 0x298], 0
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46b191
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b1af
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46b1d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x46b1ec
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0xc