Function at 0x413c7d
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, 0x482770
push edi
push 0xbc
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov byte [0x48376e], 1
call fcn.0041fac3
push 0xc0
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.0041fac3
and byte [ebp - 1], 0
xor edi, edi
cmp dword [ebp - 0x48], edi
mov dword [0x4836e0], eax
mov dword [ebp - 0x18], edi
jbe 0x4143d8
cmp byte [ebp - 1], 0
jne 0x413d23
cmp dword [ebp - 0x18], edi
jbe 0x413d23
mov eax, dword [0x42ff0c]
mov edx, dword [0x482710]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x42ff0c], eax
jle 0x413d0f
or dword [ebp - 0x4c], 0xffffffff
dec eax
mov dword [0x42ff0c], eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00415dd6
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x483770]
mov ecx, dword [0x482710]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x4836e0], eax
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
mov dword [0x482bcc], edi
mov dword [0x4836e4], edi
call fcn.0041ef35
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.004137e3
test eax, eax
jl 0x414369
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
lea eax, [ecx + eax*4 + 0x40]
add eax, dword [ebp - 0xa8]
add dword [0x4836e0], eax
mov eax, dword [0x4836e0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00420fc7
cmp byte [0x48375c], 0
pop ecx
jne 0x413dfd
mov esi, 0x482408
push 9
mov ecx, esi
call fcn.0041cbdd
test al, al
jne 0x413db3
push 0xa
mov ecx, esi
call fcn.0041cbdd
test al, al
je 0x413dfd
mov eax, dword [0x482b1c]
cmp eax, 4
jne 0x413ddd
mov eax, dword [ebp - 0xa4]
cmp eax, dword [0x482abc]
jae 0x414369
mov ecx, dword [0x482ab8]
shl eax, 4
cmp dword [eax + ecx], edi
jmp 0x413de9
cmp eax, 2
jne 0x413df0
test byte [ebp - 0xa0], 3
jne 0x413dfd
jmp 0x414369
test byte [ebp - 0xa0], 1
je 0x414369
push dword [ebp - 0x68]
call fcn.00414cd2
test al, al
pop ecx
jne 0x413e18
push dword [ebp - 0x70]
call fcn.0041742a
pop ecx
jmp 0x414369
lea ecx, [ebp - 0x38]
call fcn.0041ef35
test byte [ebp - 0x9c], 2
je 0x413e54
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.004134d1
cmp eax, edi
je 0x414361
cmp eax, 0xffffffff
je 0x41438c
push 2
pop esi
lea eax, [ebp - 0x10]
mov ecx, 0x482408
push eax
call fcn.00418e4f
lea eax, [ebp - 0x10]
mov ecx, 0x482408
push eax
call fcn.0041d6f6
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, 0x482408
call fcn.0041e39b
dec esi
jne 0x413e57
push 1
push edi
mov esi, 0x42fb94
push 2
push esi
push 0x430080
lea ecx, [ebp - 0x10]
call fcn.0041fdd7
push 1
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0041f9a1
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.0041fe73
push eax
lea ecx, [ebp - 0x44]
call fcn.0041f009
cmp dword [ebp - 0x44], 3
jbe 0x413edf
push edi
lea ecx, [ebp - 0x44]
call fcn.0041ff07
push eax
call fcn.0040ef3c
pop ecx
test al, al
pop ecx
je 0x4143a0
lea ecx, [ebp - 0x44]
call fcn.0041ff07
push eax
call fcn.0040f27e
test al, al
pop ecx
je 0x4143a0
lea ecx, [ebp - 0x44]
call fcn.0041ff07
push eax
mov ecx, ebx
call fcn.00417302
test al, al
je 0x414384
cmp dword [0x482acc], edi
je 0x413f3e
push 0xc
call fcn.00428bd9
cmp eax, edi
pop ecx
je 0x413f2f
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0041f009
jmp 0x413f31
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x482af4
call fcn.00422019
cmp byte [0x48375c], 0
jne 0x413fc1
push 0x4832c0
lea ecx, [ebp - 0xc0]
call fcn.0041f009
push 0x20
lea ecx, [ebp - 0xc0]
call fcn.0041f1be
lea ecx, [ebp - 0x58]
call fcn.0041ef35
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ff07
push eax
call fcn.00421c81
pop ecx
lea eax, [ebp - 0x58]
pop ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041f28b
lea ecx, [ebp - 0xc0]
call fcn.0041ff07
push eax
push 0x14
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00421d2d
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0041f06b
lea ecx, [ebp - 0xc0]
call fcn.0041f06b
lea ecx, [ebp - 0x64]
xor bl, bl
mov dword [ebp - 0x28], edi
call fcn.0041ef35
lea ecx, [ebp - 0x24]
call fcn.0041ef35
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
call fcn.0040f27e
test al, al
pop ecx
je 0x4140bd
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ff07
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.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0041279c
test eax, eax
jne 0x414081
push esi
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x70]
call fcn.0041742a
test byte [ebp - 0x98], 2
pop ecx
je 0x414349
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004163cb
jmp 0x414349
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.00416ea8
test eax, eax
jne 0x4140a7
push dword [ebp - 0x70]
call fcn.0041742a
pop ecx
jmp 0x414349
cmp dword [ebp - 0x28], 1
jne 0x4140bd
and dword [ebp - 0x98], 0xfffffffd
xor bl, bl
and dword [ebp - 0x9c], 0xffffff9f
test byte [ebp - 0x98], 2
je 0x4140e3
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004163cb
test byte [ebp - 0x9c], 0x80
jne 0x4140f0
test bl, bl
jne 0x41411a
test byte [ebp - 0x98], 2
jne 0x41411a
test byte [ebp - 0x9c], 0x40
jne 0x41411a
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push 0x482c84
push eax
mov ecx, 0x482c78
call fcn.00425a20
test byte [0x48260c], 6
je 0x4141d4
lea ecx, [ebp - 0xb4]
call fcn.0041ef35
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041fe73
push eax
lea ecx, [ebp - 0xb4]
call fcn.0041f146
lea ecx, [ebp - 0xb4]
call fcn.0041ff51
push 1
push 0x43007c
lea ecx, [ebp - 0xb4]
call fcn.0041f3c0
test al, al
je 0x41418d
test byte [0x48260c], 4
je 0x41418d
test byte [ebp - 0x9b], 1
jne 0x4141c9
lea eax, [ebp - 0x10]
mov esi, 0x482a6c
push eax
jmp 0x4141b5
push 1
push 0x430078
lea ecx, [ebp - 0xb4]
call fcn.0041f3c0
test al, al
je 0x4141c9
test byte [0x48260c], 2
je 0x4141c9
lea eax, [ebp - 0x10]
mov esi, 0x482a60
push eax
mov ecx, esi
call fcn.0041f28b
push edi
push 0x42fa7c
mov ecx, esi
call fcn.0041f20d
lea ecx, [ebp - 0xb4]
call fcn.0041f06b
cmp dword [ebp - 0x70], edi
mov byte [ebp - 1], 1
jne 0x414208
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4142ed
mov eax, dword [ebp - 0x9c]
and eax, 1
jne 0x4142a7
test byte [ebp - 0x9c], 2
jne 0x4142a7
cmp byte [0x42ff04], 0
mov ecx, 0x482bc0
jne 0x414237
mov ecx, 0x482b90
call fcn.0041ff07
push dword [ebp - 0x70]
lea ecx, [ebp - 0x10]
mov esi, eax
push dword [ebp - 0x2c]
call fcn.0041ff07
push eax
push esi
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x414293
and byte [ebp - 1], 0
cmp dword [ebp - 0x24], edi
jbe 0x414349
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
lea ecx, [ebp - 0x24]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x414349
mov eax, dword [0x482bcc]
sub eax, dword [0x4836e4]
push eax
call fcn.0041742a
pop ecx
jmp 0x4142ed
cmp eax, edi
je 0x4142ca
push 1
lea ecx, [ebp - 0x10]
push dword [ebp - 0x70]
push dword [ebp - 0x2c]
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00412273
test al, al
jne 0x4142ed
jmp 0x41425a
test byte [ebp - 0x9c], 2
je 0x4142ed
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
lea ecx, [ebp - 0x38]
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00415f9a
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ff07
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041696c
cmp dword [ebp - 0x24], edi
jbe 0x414319
lea ecx, [ebp - 0x24]
call fcn.0041ff07
push eax
call fcn.0040eb61
pop ecx
cmp dword [ebp - 0x28], 2
jne 0x414331
push 4
push edi
lea ecx, [ebp - 0x64]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x9c], 0x20
je 0x414349
push dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00411ca7
lea ecx, [ebp - 0x24]
call fcn.0041f06b
lea ecx, [ebp - 0x64]
call fcn.0041f06b
lea ecx, [ebp - 0x44]
call fcn.0041f06b
lea ecx, [ebp - 0x38]
call fcn.0041f06b
lea ecx, [ebp - 0x10]
call fcn.0041f06b
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x48]
jae 0x4143d8
mov ebx, dword [ebp - 0x14]
jmp 0x413ccc
lea ecx, [ebp - 0x44]
call fcn.0041f06b
lea ecx, [ebp - 0x38]
call fcn.0041f06b
lea ecx, [ebp - 0x10]
call fcn.0041f06b
xor al, al
jmp 0x4143e1
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x58]
call fcn.0041efa5
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.0041f28b
push edi
lea ecx, [ebp - 0x58]
call fcn.0041ff07
push eax
push edi
mov ecx, 0x482408
call fcn.0041e1f3
lea ecx, [ebp - 0x58]
call fcn.0041f06b
jmp 0x414384
and byte [0x48376e], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret