Function at 0x4034f0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43e74b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa68
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push ebp
push esi
push edi
mov esi, 0xb
mov dword [esp + 0x10], 0x2328
push esi
mov ecx, 0x4540c0
call fcn.004011a0
add esi, 2
cmp esi, 0x14
mov dword [esp + 0x14], esi
jle 0x403541
mov dword [esp + 0x14], 0x14
mov ecx, dword [esp + 0x10]
mov edx, dword [0x454358]
lea eax, [esp + 0x774]
push 0x104
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x4038ef
or ecx, 0xffffffff
mov edi, 0x454254
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x774]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x128]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..cab
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and ecx, 3
lea eax, [esp + 0x128]
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x403724
mov edx, dword [0x454358]
lea ecx, [esp + 0x674]
push pe_nt_image_headers32
push ecx
push 3
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [0x454358]
lea eax, [esp + 0x978]
push pe_nt_image_headers32
push eax
lea eax, [ecx + 1]
push eax
push edx
call ebx
mov ecx, dword [0x454358]
lea eax, [esp + 0x574]
push pe_nt_image_headers32
push eax
push 4
push ecx
call ebx
lea edx, [esp + 0x978]
push edx
push 0
call fcn.00412ac0
push eax
call fcn.0043e54e
mov esi, eax
lea eax, [esp + 0x680]
push eax
push 0
call fcn.00412ac0
push eax
call fcn.0043e54e
lea ecx, [esp + 0x58c]
mov edi, eax
push ecx
push 0
call fcn.00412ac0
push eax
call fcn.0043e54e
add esp, 0x24
lea edx, [esp + 0x878]
mov ebp, eax
push esi
push edi
push edx
call fcn.004330da
add esp, 0xc
lea eax, [esp + 0x878]
lea ecx, [esp + 0x1c]
push eax
call fcn.00416cb2
lea ecx, [esp + 0x1c]
push 0x40040
push ecx
mov dword [esp + 0xa88], 0
call fcn.00407480
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa80], 0xffffffff
call fcn.00416d10
push esi
call fcn.00433a1c
push edi
call fcn.00433a1c
push ebp
call fcn.00433a1c
add esp, 0xc
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403608
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, 0x454254
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x36c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x36c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..CAB
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x22c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x370]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4038db
cmp byte [esp + 0x258], 0x2e
je 0x4038b9
or ecx, 0xffffffff
mov edi, 0x454254
xor eax, eax
lea edx, [esp + 0x470]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x470]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x258]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x454760
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a3cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x258]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x474]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x24]
push edx
call ebp
test al, 1
je 0x4038b9
xor eax, 1
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x22c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4037a1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x403522
mov ecx, dword [esp + 0xa78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa74
ret