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

Disassembly:
push 0xffffffffffffffff
push 0x4233cb
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, 0x432418
call fcn.00401160
add esi, 2
cmp esi, 0x14
mov dword [esp + 0x14], esi
jle 0x402f71
mov dword [esp + 0x14], 0x14
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4326b0]
lea eax, [esp + 0x774]
push 0x104
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x40331f
or ecx, 0xffffffff
mov edi, 0x4325ac
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 0x403154
mov edx, dword [0x4326b0]
lea ecx, [esp + 0x674]
push 0x100
push ecx
push 3
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4326b0]
lea eax, [esp + 0x978]
push 0x100
push eax
lea eax, [ecx + 1]
push eax
push edx
call ebx
mov ecx, dword [0x4326b0]
lea eax, [esp + 0x574]
push 0x100
push eax
push 4
push ecx
call ebx
lea edx, [esp + 0x978]
push edx
push 0
call fcn.0040f9a0
push eax
call fcn.004231fb
mov esi, eax
lea eax, [esp + 0x680]
push eax
push 0
call fcn.0040f9a0
push eax
call fcn.004231fb
lea ecx, [esp + 0x58c]
mov edi, eax
push ecx
push 0
call fcn.0040f9a0
push eax
call fcn.004231fb
add esp, 0x24
lea edx, [esp + 0x878]
mov ebp, eax
push esi
push edi
push edx
call fcn.00419bfc
add esp, 0xc
lea eax, [esp + 0x878]
lea ecx, [esp + 0x1c]
push eax
call fcn.00413e2e
lea ecx, [esp + 0x1c]
push 0x40040
push ecx
mov dword [esp + 0xa88], 0
call fcn.00406eb0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa80], 0xffffffff
call fcn.00413e8c
push esi
call fcn.0041a54c
push edi
call fcn.0041a54c
push ebp
call fcn.0041a54c
add esp, 0xc
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403038
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, 0x4325ac
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 0x40330b
cmp byte [esp + 0x258], 0x2e
je 0x4032e9
or ecx, 0xffffffff
mov edi, 0x4325ac
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, 0x432ab8
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, 0x42a310
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 0x4032e9
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 0x4031d1
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 0x402f52
mov ecx, dword [esp + 0xa78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa74
ret