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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d92cd
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.004a8960
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 0x46af5c
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 0x46af83
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 0x46afd6
test dx, dx
je 0x46afd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46afd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x46afb0
xor eax, eax
jmp 0x46afdb
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 0x46b004
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x285], 0
je 0x46b025
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 0x46b066
test dx, dx
je 0x46b062
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b066
add eax, 4
add ecx, 4
test dx, dx
jne 0x46b040
xor eax, eax
jmp 0x46b06b
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 0x46b091
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x285], 0
je 0x46b0ac
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 0x46b0f6
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 0x46b137
push ebx
push 0x4f4714
push 0x515488
call fcn.0048d4b0
add esp, 0xc
mov dword [ebp - 0x298], 0
jmp 0x46b465
mov dword [ebp - 0x298], 1
test byte [ebp - 0x284], 0x12
jne 0x46b417
lea eax, [ebp - 0x258]
push 0x2e
push eax
call fcn.004a8591
add esp, 8
test eax, eax
je 0x46b3fe
mov ecx, str..dll
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b196
test dx, dx
je 0x46b192
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b196
add eax, 4
add ecx, 4
test dx, dx
jne 0x46b170
xor eax, eax
jmp 0x46b19b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46b3fe
mov eax, dword [ebp - 0x2ac]
push dword [eax]
lea eax, [ebp - 0x258]
push eax
push 0x4f4760
push 0x515488
call fcn.0048d4b0
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 0x46b210
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 0x46b25c
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 0x46b3b4
call fcn.004af917
mov esi, dword [ebp - 0x290]
add esp, 8
test eax, eax
je 0x46b2a4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x46b417
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x4f8c78
jmp 0x46b442
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x46b381
mov eax, dword [ebp - 0x2a8]
cmp dword [eax + 0x54], 2
jne 0x46b381
mov ecx, eax
mov dword [eax + 0x5c], 1
call fcn.00469a70
test eax, eax
je 0x46b381
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 0x46b366
test dx, dx
je 0x46b362
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x46b366
add ecx, 4
add eax, 4
test dx, dx
jne 0x46b340
xor eax, eax
jmp 0x46b36b
sbb eax, eax
or eax, 1
test eax, eax
je 0x46b3a6
mov eax, dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x2a4], eax
cmp eax, 7
jb 0x46b330
push 5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x46b417
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x4f8d90
jmp 0x46b442
lea eax, [ebp - 0x258]
push eax
push str._vc_runtime__FFile_ws.
jmp 0x46b40a
mov esi, dword [ebp - 0x290]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46b3e8
cmp eax, 0x20
jne 0x46b434
mov eax, dword [ebp - 0x2a8]
cmp dword [eax + 0x54], 1
jne 0x46b3e8
mov dword [eax + 0x58], 1
push esi
push edi
push 0x4f8df8
push 0x515488
call fcn.0048d4b0
add esp, 0x10
jmp 0x46b417
lea eax, [ebp - 0x258]
push eax
push 0x4f4740
push 0x515488
call fcn.0048d4b0
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46b141
jmp 0x46b459
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x4f8dc8
push 0x515488
call fcn.0048d4b0
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 0x46b481
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 0x46b49f
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 0x46b4c0
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 0x46b4dc
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.004a5d13
mov esp, ebp
pop ebp
ret 0xc