Function at 0x401c30
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x4020
call fcn.0040bd60
mov eax, dword [esp + 0x402c]
push ebx
push ebp
mov ebx, ecx
mov ecx, dword [esp + 0x4030]
push esi
mov esi, dword [esp + 0x4030]
push edi
push eax
push ecx
push esi
lea ebp, [ebx + 0x3218]
push str.MyCopyFile__s________s__0x_lx
push 0
push ebp
call fcn.004044c0
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2048]
add esp, 0x18
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x1030]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1030]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x1000
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x403c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x17], 1
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1034]
push ecx
call fcn.00405730
mov ecx, eax
call fcn.00403fa0
lea edx, [esp + 0x30]
push 0x1000
push edx
call fcn.00405730
mov ecx, eax
call fcn.00403fa0
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x3030]
lea esi, [ebx + 0x356c]
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
call fcn.0040bf0e
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.0040bf0e
add esp, 8
mov dword [esp + 0x24], eax
test edi, edi
je 0x401d79
test eax, eax
je 0x401d79
push edi
call fcn.0040be70
mov ecx, dword [esp + 0x28]
mov edi, eax
push ecx
call fcn.0040be70
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x401d7d
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push edx
push edi
push str._BBOOO__szOrgUpper__s___szUpper__s_
push 0
push ebp
call fcn.004044c0
mov al, byte [ebx + 0x556c]
add esp, 0x14
test al, al
je 0x401e85
test edi, edi
je 0x401e85
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401e85
push edi
push eax
call fcn.0040bdf0
add esp, 8
test eax, eax
je 0x401e85
lea eax, [esp + 0x30]
push eax
push str._BBOOO__Replace_:_Org_Dest___s_..............
push 0
push ebp
call fcn.004044c0
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x3030]
lea edi, [esp + ecx + 0x30]
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 + 0x30]
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 ecx, 0x400
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x456c]
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 + 0x30]
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 + 0x3030]
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]
lea eax, [esp + 0x30]
mov ecx, edx
push eax
and ecx, 3
push str._BBOOO__Replace_:_Dest___s_............
push 0
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.004044c0
add esp, 0x10
mov esi, dword [esp + 0x403c]
lea ecx, [esp + 0x30]
push esi
lea edx, [esp + 0x1034]
push ecx
push edx
mov ecx, ebx
call fcn.004027f0
test al, al
jne 0x401ee3
lea eax, [esp + 0x30]
push eax
push str.The_file_is_same._Skip_________s_
push 0
push ebp
call fcn.004044c0
mov eax, dword [esp + 0x4050]
add esp, 0x10
cmp eax, 2
jne 0x401ed4
lea ecx, [esp + 0x30]
push 2
push ecx
mov ecx, ebx
call fcn.004024a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4020
ret 0x10
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test esi, 0x800
mov dword [esp + 0x14], eax
je 0x401f0f
lea ecx, [esp + 0x1030]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
jmp 0x401f59
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x103c]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoA]
test eax, eax
je 0x401f55
cmp eax, 2
je 0x401fe7
push str.SetupGetFileCompressionInfo
push eax
push ebp
call fcn.004044c0
add esp, 0xc
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x401f74
test al, 1
je 0x401f74
and al, 0xfe
lea edx, [esp + 0x30]
push eax
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
push str.SetupDecompressOrCopyFile:_pActualFileName___s___szDest___s___uCompressType___d_
push 0
push ebp
call fcn.004044c0
mov edi, dword [esp + 0x4058]
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00405740
mov eax, dword [esp + 0x3c]
add esp, 0x20
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileA]
mov esi, eax
test esi, esi
je 0x4020d7
cmp esi, 5
je 0x40200e
cmp esi, 0x20
je 0x40200e
push str.SetupDecompressOrCopyFile
push esi
push ebp
call fcn.004044c0
add esp, 0xc
mov byte [esp + 0x13], 0
jmp 0x4020e4
lea ecx, [esp + 0x1030]
push ecx
push str.__s__file_not_found
push 0
push ebp
call fcn.004044c0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4020
ret 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402075
lea ecx, [esp + 0x2030]
lea edx, [esp + 0x1030]
push ecx
push edx
call fcn.00402c70
add esp, 8
test al, al
jne 0x40205b
push str.SetupDecompressOrCopyFile
push esi
push ebp
call fcn.004044c0
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4020
ret 0x10
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2030]
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileA]
jmp 0x4020a0
lea edi, [esp + 0x1030]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2030]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2030]
push ecx
push edx
push str.Update_file___s____s_
push 0
push ebp
call fcn.004044c0
add esp, 0x14
lea eax, [esp + 0x30]
lea ecx, [esp + 0x2030]
push eax
push ecx
mov ecx, ebx
call fcn.00402200
mov byte [esp + 0x13], al
jmp 0x4020e4
lea edx, [esp + 0x30]
push edi
push edx
mov ecx, ebx
call fcn.004024a0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [esp + 0x13]
test al, al
je 0x40211f
cmp dword [esp + 0x14], 0xffffffff
jne 0x40210f
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00402630
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4020
ret 0x10