Function at 0x411469
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
mov dword [ebp - 0x14], ecx
mov esi, 0x47a1f8
push edi
push 0xb8
mov ecx, esi
mov byte [0x47b0ae], 1
call fcn.0041a7a5
push 0xbc
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0041a7a5
xor ebx, ebx
mov dword [0x47b024], eax
cmp dword [ebp - 0x40], ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0x18], ebx
jbe 0x411a6c
cmp byte [ebp - 1], bl
jne 0x41150c
cmp dword [ebp - 0x18], ebx
jbe 0x41150c
mov eax, dword [0x427ee4]
mov edx, dword [0x47a19c]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x427ee4], eax
jle 0x4114f8
or dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x14]
dec eax
mov dword [0x427ee4], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00412f80
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47b0b0]
mov ecx, dword [0x47a19c]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x47b024], eax
lea ecx, [ebp - 0x10]
mov dword [0x47a590], ebx
mov dword [0x47b028], ebx
mov byte [ebp - 1], bl
call fcn.00419c64
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00411042
test eax, eax
jl 0x411a08
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
lea eax, [ecx + eax*4 + 0x3c]
add eax, dword [ebp - 0x5c]
add dword [0x47b024], eax
mov eax, dword [0x47b024]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041bb09
pop ecx
push dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x14]
call fcn.004121cd
test al, al
je 0x411a08
cmp byte [0x47b0a0], bl
mov eax, dword [0x47a0bc]
jne 0x411593
test ah, 1
jne 0x411598
test ah, 2
je 0x4115e2
mov eax, dword [0x47a4fc]
cmp eax, 4
jne 0x4115c2
mov eax, dword [ebp - 0xa4]
cmp eax, dword [0x47a4dc]
jae 0x411a08
mov ecx, dword [0x47a4d8]
shl eax, 4
cmp dword [eax + ecx], ebx
jmp 0x4115ce
cmp eax, 2
jne 0x4115d5
test byte [ebp - 0xa0], 3
jne 0x4115e2
jmp 0x411a08
test byte [ebp - 0xa0], 1
je 0x411a08
lea eax, [ebp - 0x10]
mov esi, 0x479ee8
push eax
mov ecx, esi
call fcn.00415674
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004189c2
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.00419277
push 1
lea ecx, [ebp - 0x10]
pop edi
push edi
push ebx
push 2
push 0x427c6c
push 0x428118
call fcn.0041aa75
push edi
push ebx
push 0x427c6c
lea ecx, [ebp - 0x10]
call fcn.0041a683
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041ab15
push eax
lea ecx, [ebp - 0x24]
call fcn.00419d38
cmp dword [ebp - 0x24], 3
jbe 0x411667
push ebx
lea ecx, [ebp - 0x24]
call fcn.0041ab9e
push eax
call fcn.0040d674
pop ecx
test al, al
pop ecx
je 0x411a3c
lea ecx, [ebp - 0x24]
call fcn.0041ab9e
push eax
call fcn.0040d9bb
test al, al
pop ecx
je 0x411a3c
lea ecx, [ebp - 0x24]
call fcn.0041ab9e
mov esi, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0041432a
test al, al
je 0x411a28
lea ecx, [ebp - 0x38]
call fcn.00419c64
test byte [ebp - 0x9c], 2
je 0x4116d5
lea eax, [ebp - 1]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00410d0e
cmp eax, ebx
je 0x4119f8
cmp eax, 0xffffffff
je 0x411a20
cmp byte [0x47b0a0], bl
jne 0x411723
push 0x47acb8
lea ecx, [ebp - 0x4c]
call fcn.00419d38
push 0x20
lea ecx, [ebp - 0x4c]
call fcn.00419e97
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00419f64
lea ecx, [ebp - 0x4c]
call fcn.0041ab9e
push eax
push 0x14
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x4c]
call fcn.00419d9a
test byte [ebp - 0x98], 2
je 0x411748
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041ab9e
push eax
mov ecx, esi
call fcn.004134b4
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
call fcn.00419c64
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
call fcn.0040d9bb
test al, al
pop ecx
je 0x4117f4
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ab9e
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00410302
test eax, eax
jne 0x4117c5
push esi
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4119f0
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00413f10
test eax, eax
je 0x4119f0
cmp dword [ebp - 0x2c], edi
jne 0x41181e
and dword [ebp - 0x98], 0xfffffffd
and dword [ebp - 0x9c], 0xffffff9f
test byte [ebp - 0x98], 2
jne 0x41181e
test byte [ebp - 0x9c], 0x40
jne 0x41181e
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push 0x47a66c
push eax
mov ecx, 0x47a660
call fcn.0041f0bc
test byte [0x47a0b4], 6
je 0x4118bb
lea ecx, [ebp - 0x68]
call fcn.00419c64
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ab15
push eax
lea ecx, [ebp - 0x68]
call fcn.00419e1f
lea ecx, [ebp - 0x68]
call fcn.0041abe8
push edi
push 0x428114
lea ecx, [ebp - 0x68]
call fcn.0041a099
test al, al
je 0x41187b
test byte [0x47a0b4], 4
je 0x41187b
lea eax, [ebp - 0x10]
mov esi, 0x47a490
push eax
jmp 0x41189f
push edi
push 0x428110
lea ecx, [ebp - 0x68]
call fcn.0041a099
test al, al
je 0x4118b3
test byte [0x47a0b4], 2
je 0x4118b3
lea eax, [ebp - 0x10]
mov esi, 0x47a484
push eax
mov ecx, esi
call fcn.00419f64
push ebx
push 0x427c50
mov ecx, esi
call fcn.00419ee6
lea ecx, [ebp - 0x68]
call fcn.00419d9a
cmp dword [ebp - 0x70], ebx
mov byte [ebp - 1], 1
jne 0x4118ee
push ebx
push 0x80
push 2
push ebx
push edi
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411986
mov eax, dword [ebp - 0x9c]
and eax, edi
jne 0x41193b
test byte [ebp - 0x9c], 2
jne 0x41193b
push dword [ebp - 0x70]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.0041ab9e
push eax
mov ecx, 0x47a560
call fcn.0041ab9e
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x41195b
mov eax, dword [0x47a590]
sub eax, dword [0x47b028]
push eax
call fcn.00414452
pop ecx
jmp 0x411986
cmp eax, ebx
je 0x411963
push edi
lea ecx, [ebp - 0x10]
push dword [ebp - 0x70]
push dword [ebp - 0x28]
call fcn.0041ab9e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0040ff0e
test al, al
jne 0x411986
mov byte [ebp - 1], bl
jmp 0x4119f0
test byte [ebp - 0x9c], 2
je 0x411986
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
lea ecx, [ebp - 0x38]
call fcn.0041ab9e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00413096
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ab9e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00413993
cmp dword [ebp - 0x2c], 2
jne 0x4119b6
push 4
push ebx
lea ecx, [ebp - 0x58]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x9c], 0x20
je 0x4119f0
push 0xc
call fcn.0042200e
cmp eax, ebx
pop ecx
je 0x4119d6
mov ecx, eax
call fcn.00419c64
mov esi, eax
jmp 0x4119d8
xor esi, esi
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00419f64
push 0xffffffffffffffff
push esi
mov ecx, 0x47a430
call fcn.0041c478
lea ecx, [ebp - 0x58]
call fcn.00419d9a
lea ecx, [ebp - 0x38]
call fcn.00419d9a
lea ecx, [ebp - 0x24]
call fcn.00419d9a
lea ecx, [ebp - 0x10]
call fcn.00419d9a
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jae 0x411a6c
jmp 0x4114b5
lea ecx, [ebp - 0x38]
call fcn.00419d9a
lea ecx, [ebp - 0x24]
call fcn.00419d9a
lea ecx, [ebp - 0x10]
call fcn.00419d9a
xor al, al
jmp 0x411a74
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x4c]
call fcn.00419cd4
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00419f64
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0041ab9e
push eax
push ebx
mov ecx, esi
call fcn.0041916b
lea ecx, [ebp - 0x4c]
jmp 0x411a23
mov byte [0x47b0ae], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret