Function at 0x413c42
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
mov ebx, ecx
mov esi, 0x482668
push edi
push 0xbc
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov byte [0x483666], 1
call fcn.0041f63e
push 0xc0
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.0041f63e
and byte [ebp - 1], 0
xor edi, edi
cmp dword [ebp - 0x48], edi
mov dword [0x4835d8], eax
mov dword [ebp - 0x18], edi
jbe 0x41435a
cmp byte [ebp - 1], 0
jne 0x413ce8
cmp dword [ebp - 0x18], edi
jbe 0x413ce8
mov eax, dword [0x42fef4]
mov edx, dword [0x482608]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x42fef4], eax
jle 0x413cd4
or dword [ebp - 0x4c], 0xffffffff
dec eax
mov dword [0x42fef4], eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00415d58
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x483668]
mov ecx, dword [0x482608]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x4835d8], eax
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
mov dword [0x482ac4], edi
mov dword [0x4835dc], edi
call fcn.0041eab0
lea eax, [ebp - 0xa8]
mov ecx, ebx
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004137a8
test eax, eax
jl 0x4142eb
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
lea eax, [eax + ecx*4 + 0x40]
add eax, dword [ebp - 0xa8]
add dword [0x4835d8], eax
mov eax, dword [0x4835d8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00420b2a
cmp byte [0x483654], 0
pop ecx
jne 0x413dc2
mov esi, 0x482320
push 9
mov ecx, esi
call fcn.0041c951
test al, al
jne 0x413d78
push 0xa
mov ecx, esi
call fcn.0041c951
test al, al
je 0x413dc2
mov eax, dword [0x482a14]
cmp eax, 4
jne 0x413da2
mov eax, dword [ebp - 0xa4]
cmp eax, dword [0x4829b4]
jae 0x4142eb
mov ecx, dword [0x4829b0]
shl eax, 4
cmp dword [eax + ecx], edi
jmp 0x413dae
cmp eax, 2
jne 0x413db5
test byte [ebp - 0xa0], 3
jne 0x413dc2
jmp 0x4142eb
test byte [ebp - 0xa0], 1
je 0x4142eb
push dword [ebp - 0x68]
call fcn.00414c54
test al, al
pop ecx
jne 0x413ddd
push dword [ebp - 0x70]
call fcn.0041738f
pop ecx
jmp 0x4142eb
lea ecx, [ebp - 0x38]
call fcn.0041eab0
test byte [ebp - 0x9c], 2
je 0x413e19
lea eax, [ebp - 1]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00413496
cmp eax, edi
je 0x4142e3
cmp eax, 0xffffffff
je 0x41430e
push 2
pop esi
lea eax, [ebp - 0x10]
mov ecx, 0x482320
push eax
call fcn.00418d60
lea eax, [ebp - 0x10]
mov ecx, 0x482320
push eax
call fcn.0041d46a
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, 0x482320
call fcn.0041e10f
dec esi
jne 0x413e1c
push 1
push edi
mov esi, 0x42fb7c
push 2
push esi
push 0x430068
lea ecx, [ebp - 0x10]
call fcn.0041f93a
push 1
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0041f507
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.0041f9d6
push eax
lea ecx, [ebp - 0x44]
call fcn.0041eb84
cmp dword [ebp - 0x44], 3
jbe 0x413ea4
push edi
lea ecx, [ebp - 0x44]
call fcn.0041fa6a
push eax
call fcn.0040ef19
pop ecx
test al, al
pop ecx
je 0x414322
lea ecx, [ebp - 0x44]
call fcn.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
je 0x414322
lea ecx, [ebp - 0x44]
call fcn.0041fa6a
push eax
mov ecx, ebx
call fcn.00417267
test al, al
je 0x414306
cmp dword [0x4829c4], edi
je 0x413f03
push 0xc
call fcn.00428529
cmp eax, edi
pop ecx
je 0x413ef4
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0041eb84
jmp 0x413ef6
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x4829ec
call fcn.00421b7c
cmp byte [0x483654], 0
jne 0x413f86
push 0x4831b8
lea ecx, [ebp - 0xc0]
call fcn.0041eb84
push 0x20
lea ecx, [ebp - 0xc0]
call fcn.0041ed24
lea ecx, [ebp - 0x58]
call fcn.0041eab0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041fa6a
push eax
call fcn.004217e4
pop ecx
lea eax, [ebp - 0x58]
pop ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041edf1
lea ecx, [ebp - 0xc0]
call fcn.0041fa6a
push eax
push 0x14
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00421890
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0041ebe6
lea ecx, [ebp - 0xc0]
call fcn.0041ebe6
lea ecx, [ebp - 0x64]
xor bl, bl
mov dword [ebp - 0x28], edi
call fcn.0041eab0
lea ecx, [ebp - 0x24]
call fcn.0041eab0
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call fcn.0040f25b
test al, al
pop ecx
je 0x41404c
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc8]
push eax
inc bl
call fcn.0041fa6a
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00412761
test eax, eax
jne 0x414010
push esi
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x414028
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00416e0d
test eax, eax
jne 0x414036
push dword [ebp - 0x70]
call fcn.0041738f
pop ecx
jmp 0x4142cb
cmp dword [ebp - 0x28], 1
jne 0x41404c
and dword [ebp - 0x98], 0xfffffffd
xor bl, bl
and dword [ebp - 0x9c], 0xffffff9f
test byte [ebp - 0x98], 2
je 0x414072
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041fa6a
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041634d
test byte [ebp - 0x9c], 0x80
jne 0x41407f
test bl, bl
jne 0x4140a9
test byte [ebp - 0x98], 2
jne 0x4140a9
test byte [ebp - 0x9c], 0x40
jne 0x4140a9
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push 0x482b7c
push eax
mov ecx, 0x482b70
call fcn.00425376
test byte [0x482504], 6
je 0x414163
lea ecx, [ebp - 0xb4]
call fcn.0041eab0
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041f9d6
push eax
lea ecx, [ebp - 0xb4]
call fcn.0041ecc1
lea ecx, [ebp - 0xb4]
call fcn.0041fab4
push 1
push 0x430064
lea ecx, [ebp - 0xb4]
call fcn.0041ef26
test al, al
je 0x41411c
test byte [0x482504], 4
je 0x41411c
test byte [ebp - 0x9b], 1
jne 0x414158
lea eax, [ebp - 0x10]
mov esi, 0x482964
push eax
jmp 0x414144
push 1
push 0x430060
lea ecx, [ebp - 0xb4]
call fcn.0041ef26
test al, al
je 0x414158
test byte [0x482504], 2
je 0x414158
lea eax, [ebp - 0x10]
mov esi, 0x482958
push eax
mov ecx, esi
call fcn.0041edf1
push edi
push 0x42fa2c
mov ecx, esi
call fcn.0041ed73
lea ecx, [ebp - 0xb4]
call fcn.0041ebe6
cmp dword [ebp - 0x70], edi
mov byte [ebp - 1], 1
jne 0x414197
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41426f
mov eax, dword [ebp - 0x9c]
and eax, 1
jne 0x4141f5
test byte [ebp - 0x9c], 2
jne 0x4141f5
cmp byte [0x42feec], 0
mov ecx, 0x482ab8
jne 0x4141be
mov ecx, 0x482a88
call fcn.0041fa6a
push dword [ebp - 0x70]
lea ecx, [ebp - 0x10]
mov esi, eax
push dword [ebp - 0x2c]
call fcn.0041fa6a
push eax
push esi
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x414216
mov eax, dword [0x482ac4]
sub eax, dword [0x4835dc]
push eax
call fcn.0041738f
pop ecx
jmp 0x41426f
cmp eax, edi
je 0x41424c
push 1
lea ecx, [ebp - 0x10]
push dword [ebp - 0x70]
push dword [ebp - 0x2c]
call fcn.0041fa6a
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041222f
test al, al
jne 0x41426f
and byte [ebp - 1], 0
cmp dword [ebp - 0x24], edi
jbe 0x4142cb
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
lea ecx, [ebp - 0x24]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x4142cb
test byte [ebp - 0x9c], 2
je 0x41426f
lea ecx, [ebp - 0x10]
call fcn.0041fa6a
push eax
lea ecx, [ebp - 0x38]
call fcn.0041fa6a
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00415f1c
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041fa6a
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004168d1
cmp dword [ebp - 0x24], edi
jbe 0x41429b
lea ecx, [ebp - 0x24]
call fcn.0041fa6a
push eax
call fcn.0040eb3e
pop ecx
cmp dword [ebp - 0x28], 2
jne 0x4142b3
push 4
push edi
lea ecx, [ebp - 0x64]
call fcn.0041fa6a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x9c], 0x20
je 0x4142cb
push dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00411c63
lea ecx, [ebp - 0x24]
call fcn.0041ebe6
lea ecx, [ebp - 0x64]
call fcn.0041ebe6
lea ecx, [ebp - 0x44]
call fcn.0041ebe6
lea ecx, [ebp - 0x38]
call fcn.0041ebe6
lea ecx, [ebp - 0x10]
call fcn.0041ebe6
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x48]
jae 0x41435a
mov ebx, dword [ebp - 0x14]
jmp 0x413c91
lea ecx, [ebp - 0x44]
call fcn.0041ebe6
lea ecx, [ebp - 0x38]
call fcn.0041ebe6
lea ecx, [ebp - 0x10]
call fcn.0041ebe6
xor al, al
jmp 0x414363
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x58]
call fcn.0041eb20
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.0041edf1
push edi
lea ecx, [ebp - 0x58]
call fcn.0041fa6a
push eax
push edi
mov ecx, 0x482320
call fcn.0041df67
lea ecx, [ebp - 0x58]
call fcn.0041ebe6
jmp 0x414306
and byte [0x483666], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret