Function at 0x404e90
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9e0c
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x6877f0]
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 + 0x10]
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
mov dword [ebp - 0x4ec], edi
call fcn.0058db90
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0058db90
push 0x104
push 0
push 0x68e348
call fcn.0058db90
push 0x104
push 0
push 0x68df38
call fcn.0058db90
add esp, 0x30
push 0
push 0x23
push 0x68df38
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x404fd0
push str.CTESComponentsSVC
push 0x68df38
push str._s_s
push 0x68e348
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, 0x68df38
call fcn.00403010
test eax, eax
je 0x404fd0
push str.SVC.json
push 0x68e348
lea eax, [ebp - 0x114]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push str.SVC.json
push 0x68e140
lea eax, [ebp - 0x218]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push 0x68e140
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404faa
push 0x68e140
call fcn.00404120
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404fd0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test edi, edi
je 0x405454
mov ecx, edi
call fcn.004066a0
push ecx
mov ecx, 0x68df38
call fcn.00403010
test eax, eax
je 0x405454
mov ecx, 0x68e140
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405000
sub ecx, edx
cmp byte [ecx + 0x68e13f], 0x5c
je 0x405029
push 0x671d44
push 0x104
push 0x68e140
call fcn.0059a9e5
add esp, 0xc
push 0x68e140
lea eax, [ebp - 0x33c]
push 0x124
push eax
call fcn.0059a26a
push str.SVC.json
lea eax, [ebp - 0x33c]
push 0x124
push eax
call fcn.0059a9e5
add esp, 0x18
mov dword [ebp - 0x4e4], 0
mov dword [ebp - 0x4e0], 0
push 0
push 0
call fcn.0040bd70
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x4d8]
mov dword [ebp - 4], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x378], 0
lea eax, [ebp - 0x33c]
push eax
movups xmmword [ebp - 0x398], xmm0
movups xmmword [ebp - 0x388], xmm0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x4e8], eax
cmp eax, 0xffffffff
je 0x405322
mov edi, eax
cmp byte [ebp - 0x4ac], 0x2e
je 0x4052ff
mov ecx, 0x68e140
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0xf
mov byte [ebp - 0x354], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4050f2
sub ecx, edx
push ecx
push 0x68e140
lea ecx, [ebp - 0x354]
call fcn.0040a020
lea esi, [ebp - 0x4ac]
mov byte [ebp - 4], 1
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x405120
mov edx, dword [ebp - 0x340]
sub esi, ecx
mov ecx, dword [ebp - 0x344]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x40516f
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x344], eax
lea edi, [ebp - 0x354]
cmovae edi, dword [ebp - 0x354]
lea eax, [ebp - 0x4ac]
add edi, ecx
push eax
push edi
call fcn.0058d610
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x40518f
lea eax, [ebp - 0x4ac]
mov byte [ebp - 0x4dc], 0
push eax
push dword [ebp - 0x4dc]
lea ecx, [ebp - 0x354]
push esi
call fcn.0040cab0
cmp dword [ebp - 0x340], 0x10
lea ecx, [ebp - 0x398]
push ecx
lea eax, [ebp - 0x354]
mov dword [ebp - 0x378], 0
cmovae eax, dword [ebp - 0x354]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x398], xmm0
movups xmmword [ebp - 0x388], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x4052bb
cmp dword [ebp - 0x378], 0x17
jb 0x4052bb
mov esi, dword [ebp - 0x4c4]
mov edi, dword [ebp - 0x4c0]
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0xf
mov byte [ebp - 0x374], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x354]
cmp dword [ebp - 0x340], 0x10
lea ecx, [ebp - 0x374]
push dword [ebp - 0x344]
cmovae eax, dword [ebp - 0x354]
push eax
call fcn.0040a020
mov dword [ebp - 0x35c], esi
mov dword [ebp - 0x358], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x374]
mov esi, dword [ebp - 0x4e4]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0040d3e0
mov edx, dword [ebp - 0x4e0]
mov ecx, 0x6666665
sub ecx, edx
cmp ecx, 1
jb 0x405478
inc edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x4e0], edx
mov edx, dword [ebp - 0x360]
mov dword [esi + 4], eax
mov dword [edi], eax
cmp edx, 0x10
jb 0x4052bb
mov ecx, dword [ebp - 0x374]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405473
push edx
push ecx
call fcn.00575155
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x340]
cmp edx, 0x10
jb 0x4052f9
mov ecx, dword [ebp - 0x354]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4052ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405473
push edx
push ecx
call fcn.00575155
add esp, 8
mov edi, dword [ebp - 0x4e8]
lea eax, [ebp - 0x4d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4050c2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x4ec]
push dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4e4]
lea ecx, [ebp - 0x4dc]
push ecx
push eax
mov dword [ebp - 0x4dc], 0x404e60
lea ecx, [ebp - 0x4e4]
push dword [eax]
lea eax, [ebp - 0x4e8]
push eax
call fcn.0040d2d0
mov eax, dword [ebp - 0x4e4]
mov esi, dword [eax]
cmp esi, eax
je 0x4053b6
jmp 0x405364
mov edi, edx
mov edi, dword [edi]
lea eax, [esi + 8]
push eax
mov ecx, dword [edi + 4]
push ecx
push edi
mov dword [ebp - 0x4dc], ecx
call fcn.0040d440
mov ecx, dword [ebp - 0x4ec]
mov edx, dword [ecx + 4]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x405478
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x4ec]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x4dc]
mov dword [edi + 4], eax
mov dword [ecx], eax
mov esi, dword [esi]
mov eax, dword [ebp - 0x4e4]
cmp esi, eax
jne 0x405362
mov ecx, dword [ebp - 0x4ec]
mov esi, dword [eax]
mov ecx, dword [ecx + 4]
mov dword [eax], eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4dc], ecx
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e0], 0
cmp esi, eax
je 0x405441
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi]
cmp ecx, 0x10
jb 0x405418
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x40540e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405473
mov eax, edx
push ecx
push eax
call fcn.00575155
add esp, 8
push 0x28
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
push esi
mov byte [esi + 8], 0
call fcn.00575155
mov eax, dword [ebp - 0x4e4]
add esp, 8
mov esi, edi
cmp edi, eax
jne 0x4053e6
push 0x28
push eax
call fcn.00575155
mov eax, dword [ebp - 0x4dc]
add esp, 8
jmp 0x405456
xor eax, eax
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.00574c7a
mov esp, ebp
pop ebp
ret 0xc
call fcn.0059b248
push str.list_T__too_long
call fcn.005733fa
int3