Function at 0x4565b0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d30dd
mov eax, dword fs:[0]
push eax
sub esp, 0x8e8
mov eax, dword [0x5010c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4570ba
xorps xmm0, xmm0
mov dword [ebp - 0x62c], eax
movups xmmword [ebp - 0x63c], xmm0
push 8
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
call fcn.0049f7ce
lea ecx, [ebp - 0x63c]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x63c], eax
mov dword [eax], ecx
push esi
lea ecx, [ebp - 0x8f0]
mov dword [ebp - 4], 0
call fcn.00425ca0
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 1
call fcn.0045a370
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8dc]
cmp ecx, 7
jbe 0x4566a7
mov edx, dword [ebp - 0x8f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45669d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4570dc
push ecx
push edx
call fcn.0049f7fe
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x640], 0
movups xmmword [ebp - 0x650], xmm0
push 8
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 0
call fcn.0049f7ce
lea ecx, [ebp - 0x650]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x650], eax
mov dword [eax], ecx
push edi
lea ecx, [ebp - 0x8f0]
mov byte [ebp - 4], 2
call fcn.00425ca0
push eax
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 3
call fcn.0045a370
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x8dc]
cmp ecx, 7
jbe 0x456770
mov edx, dword [ebp - 0x8f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456766
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4570e1
push ecx
push edx
call fcn.0049f7fe
add esp, 8
cmp dword [ebp - 0x62c], 0
je 0x456f07
nop dword [eax]
mov ecx, dword [ebp - 0x634]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x630]
mov esi, dword [ebp - 0x638]
lea eax, [ecx - 1]
and eax, edx
mov edi, dword [esi + eax*4]
mov eax, edi
movups xmmword [ebp - 0x680], xmm0
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x8d4], edi
jbe 0x4567ce
mov eax, dword [edi]
mov dword [ebp - 0x8d4], eax
mov edi, dword [edi + 0x10]
cmp edi, 0x7ffffffe
ja 0x4570eb
cmp edi, 7
ja 0x4567fe
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x66c], 7
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x680], xmm0
jmp 0x456874
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x456812
mov esi, SysReAllocString
jmp 0x45681d
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x8d8], eax
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.00426110
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x680], eax
push ecx
push dword [ebp - 0x8d4]
mov dword [ebp - 0x670], edi
push eax
mov dword [ebp - 0x66c], esi
call fcn.004a1040
mov edx, dword [ebp - 0x630]
add esp, 0x14
mov ecx, dword [ebp - 0x634]
mov esi, dword [ebp - 0x638]
dec ecx
mov byte [ebp - 4], 4
and ecx, edx
mov ecx, dword [esi + ecx*4]
call fcn.00425dd0
sub dword [ebp - 0x62c], 1
jne 0x456898
mov dword [ebp - 0x630], 0
jmp 0x45689e
inc dword [ebp - 0x630]
mov ecx, dword [ebp - 0x648]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x644]
mov esi, dword [ebp - 0x64c]
lea eax, [ecx - 1]
and eax, edx
mov edi, dword [esi + eax*4]
mov eax, edi
movups xmmword [ebp - 0x668], xmm0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x8d4], edi
jbe 0x4568ec
mov eax, dword [edi]
mov dword [ebp - 0x8d4], eax
mov edi, dword [edi + 0x10]
cmp edi, 0x7ffffffe
ja 0x4570eb
cmp edi, 7
ja 0x45691c
mov dword [ebp - 0x658], edi
mov dword [ebp - 0x654], 7
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x668], xmm0
jmp 0x456992
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x456930
mov esi, SysReAllocString
jmp 0x45693b
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x8d8], eax
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x668]
push eax
call fcn.00426110
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x668], eax
push ecx
push dword [ebp - 0x8d4]
mov dword [ebp - 0x658], edi
push eax
mov dword [ebp - 0x654], esi
call fcn.004a1040
mov edx, dword [ebp - 0x644]
add esp, 0x14
mov ecx, dword [ebp - 0x648]
mov esi, dword [ebp - 0x64c]
dec ecx
mov byte [ebp - 4], 5
and ecx, edx
mov ecx, dword [esi + ecx*4]
call fcn.00425dd0
sub dword [ebp - 0x640], 1
jne 0x4569b6
mov dword [ebp - 0x644], 0
jmp 0x4569bc
inc dword [ebp - 0x644]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004a15c0
cmp dword [ebp - 0x66c], 7
lea eax, [ebp - 0x680]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmova eax, dword [ebp - 0x680]
push eax
lea eax, [ebp - 0x628]
push 0x4e9080
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x4ea12c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x8d0]
push 0
push eax
call fcn.004a15c0
add esp, 0xc
lea eax, [ebp - 0x8d0]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x8f4], esi
cmp esi, 0xffffffff
je 0x456e59
nop dword [eax + eax]
cmp word [ebp - 0x8a4], 0x2e
je 0x456e3c
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a15c0
cmp dword [ebp - 0x66c], 7
lea ecx, [ebp - 0x8a4]
push ecx
lea eax, [ebp - 0x680]
cmova eax, dword [ebp - 0x680]
push eax
lea eax, [ebp - 0x420]
push 0x4ea134
push eax
call edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a15c0
cmp dword [ebp - 0x654], 7
lea ecx, [ebp - 0x8a4]
push ecx
lea eax, [ebp - 0x668]
cmova eax, dword [ebp - 0x668]
push eax
lea eax, [ebp - 0x218]
push 0x4ea134
push eax
call edi
add esp, 0x38
test byte [ebp - 0x8d0], 0x10
je 0x456e26
xorps xmm0, xmm0
mov dword [ebp - 0x8e0], 0
lea esi, [ebp - 0x420]
mov dword [ebp - 0x8dc], 0
movups xmmword [ebp - 0x8f0], xmm0
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x456b10
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4570eb
cmp esi, 7
ja 0x456b65
mov dword [ebp - 0x8e0], esi
lea eax, [ebp - 0x420]
add esi, esi
mov dword [ebp - 0x8dc], 7
push esi
push eax
lea eax, [ebp - 0x8f0]
push eax
call fcn.004a1040
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x8f0], ax
jmp 0x456bd6
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x456b78
mov eax, SysReAllocString
jmp 0x456b83
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x8d4], eax
inc eax
mov dword [ebp - 0x8d8], eax
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x8f0]
push eax
call fcn.00426110
mov edi, eax
mov dword [ebp - 0x8e0], esi
mov eax, dword [ebp - 0x8d4]
add esi, esi
mov dword [ebp - 0x8dc], eax
lea eax, [ebp - 0x420]
push esi
push eax
push edi
mov dword [ebp - 0x8f0], edi
call fcn.004a1040
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x62c]
mov edx, dword [ebp - 0x634]
lea eax, [esi + 1]
cmp edx, eax
ja 0x456c05
push ecx
lea ecx, [ebp - 0x63c]
call fcn.0045a810
mov esi, dword [ebp - 0x62c]
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x630]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x630], ecx
lea edi, [ecx + esi]
mov ecx, dword [ebp - 0x638]
and eax, edi
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x456c50
push 0x18
call fcn.0049f7ce
mov ecx, dword [ebp - 0x638]
add esp, 4
mov dword [esi + ecx], eax
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x638]
movups xmm0, xmmword [ebp - 0x8f0]
lea eax, [edx - 1]
and eax, edi
lea esi, [ebp - 0x218]
mov eax, dword [ecx + eax*4]
lea ecx, [esi + 2]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8e0]
movq qword [eax + 0x10], xmm0
xorps xmm0, xmm0
inc dword [ebp - 0x62c]
mov byte [ebp - 4], 5
movups xmmword [ebp - 0x8f0], xmm0
mov dword [ebp - 0x8e0], 0
mov dword [ebp - 0x8dc], 0
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x456ca0
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x4570eb
cmp esi, 7
ja 0x456cf5
mov dword [ebp - 0x8e0], esi
lea eax, [ebp - 0x218]
add esi, esi
mov dword [ebp - 0x8dc], 7
push esi
push eax
lea eax, [ebp - 0x8f0]
push eax
call fcn.004a1040
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x8f0], ax
jmp 0x456d66
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x456d08
mov eax, SysReAllocString
jmp 0x456d13
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0x8d4], eax
inc eax
mov dword [ebp - 0x8d8], eax
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x8f0]
push eax
call fcn.00426110
mov edi, eax
mov dword [ebp - 0x8e0], esi
mov eax, dword [ebp - 0x8d4]
add esi, esi
mov dword [ebp - 0x8dc], eax
lea eax, [ebp - 0x218]
push esi
push eax
push edi
mov dword [ebp - 0x8f0], edi
call fcn.004a1040
add esp, 0x14
xor eax, eax
mov word [esi + edi], ax
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x640]
mov edx, dword [ebp - 0x648]
lea eax, [esi + 1]
cmp edx, eax
ja 0x456d95
push ecx
lea ecx, [ebp - 0x650]
call fcn.0045a810
mov esi, dword [ebp - 0x640]
mov edx, dword [ebp - 0x648]
mov ecx, dword [ebp - 0x644]
lea eax, [edx - 1]
and ecx, eax
lea eax, [edx - 1]
mov dword [ebp - 0x644], ecx
lea edi, [ecx + esi]
mov ecx, dword [ebp - 0x64c]
and eax, edi
lea esi, [eax*4]
cmp dword [esi + ecx], 0
jne 0x456de0
push 0x18
call fcn.0049f7ce
mov ecx, dword [ebp - 0x64c]
add esp, 4
mov dword [ecx + esi], eax
mov edx, dword [ebp - 0x648]
mov ecx, dword [ebp - 0x64c]
movups xmm0, xmmword [ebp - 0x8f0]
lea eax, [edx - 1]
and eax, edi
push 0
mov eax, dword [ecx + eax*4]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x8e0]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x218]
inc dword [ebp - 0x640]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp - 0x8f4]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x456e3c
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x8d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x456a50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x654]
cmp ecx, 7
jbe 0x456e9d
mov edx, dword [ebp - 0x668]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456e93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4570dc
push ecx
push edx
call fcn.0049f7fe
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x66c]
mov word [ebp - 0x668], ax
mov dword [ebp - 0x654], 7
mov dword [ebp - 0x658], eax
cmp ecx, 7
jbe 0x456efa
mov edx, dword [ebp - 0x680]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456ef0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4570dc
push ecx
push edx
call fcn.0049f7fe
add esp, 8
cmp dword [ebp - 0x62c], 0
jne 0x456780
mov ecx, dword [ebp - 0x640]
test ecx, ecx
je 0x456f4c
mov eax, dword [ebp - 0x644]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x648]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x64c]
mov ecx, dword [eax + ecx*4]
call fcn.00425dd0
mov ecx, dword [ebp - 0x640]
sub ecx, 1
mov dword [ebp - 0x640], ecx
jne 0x456f11
mov dword [ebp - 0x644], 0
mov ecx, dword [ebp - 0x64c]
test ecx, ecx
je 0x456faf
mov esi, dword [ebp - 0x648]
test esi, esi
jle 0x456f84
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x456f7a
push 0x18
push eax
call fcn.0049f7fe
mov ecx, dword [ebp - 0x64c]
add esp, 8
test esi, esi
jg 0x456f60
mov esi, dword [ebp - 0x648]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x456fa5
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4570e6
push esi
push ecx
call fcn.0049f7fe
add esp, 8
mov eax, dword [ebp - 0x650]
push 8
push eax
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x64c], 0
mov dword [ebp - 0x650], 0
call fcn.0049f7fe
mov ecx, dword [ebp - 0x62c]
add esp, 8
test ecx, ecx
je 0x45702b
nop dword [eax + eax]
mov eax, dword [ebp - 0x630]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x634]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x638]
mov ecx, dword [eax + ecx*4]
call fcn.00425dd0
mov ecx, dword [ebp - 0x62c]
sub ecx, 1
mov dword [ebp - 0x62c], ecx
jne 0x456ff0
mov dword [ebp - 0x630], 0
mov ecx, dword [ebp - 0x638]
test ecx, ecx
je 0x45708b
mov esi, dword [ebp - 0x634]
test esi, esi
jle 0x457064
nop
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x45705a
push 0x18
push eax
call fcn.0049f7fe
mov ecx, dword [ebp - 0x638]
add esp, 8
test esi, esi
jg 0x457040
mov esi, dword [ebp - 0x634]
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x457081
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4570e6
push esi
push ecx
call fcn.0049f7fe
add esp, 8
mov eax, dword [ebp - 0x63c]
push 8
push eax
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x63c], 0
call fcn.0049f7fe
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fb4b
mov esp, ebp
pop ebp
ret 8
call fcn.004a4b9f
call fcn.004a4b9f
call fcn.004a4b9f
call fcn.004253a0
int3