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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
mov dword [ebp - 0x14], ecx
mov esi, 0x47f3e0
push edi
push 0xbc
mov ecx, esi
mov byte [0x48038a], 1
call fcn.0041daab
push 0xc0
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0041daab
and byte [ebp - 1], 0
xor esi, esi
cmp dword [ebp - 0x40], esi
mov dword [0x480300], eax
mov dword [ebp - 0x18], esi
jbe 0x4131c0
cmp byte [ebp - 1], 0
jne 0x412bfe
cmp dword [ebp - 0x18], esi
jbe 0x412bfe
mov eax, dword [0x42cfd4]
mov edx, dword [0x47f380]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x42cfd4], eax
jle 0x412bea
or dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x14]
dec eax
mov dword [0x42cfd4], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00414a47
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x48038c]
mov ecx, dword [0x47f380]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x480300], eax
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
mov dword [0x47f7e8], esi
mov dword [0x480304], esi
call fcn.0041cf73
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004126fe
test eax, eax
jl 0x413155
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
lea eax, [eax + ecx*4 + 0x40]
add eax, dword [ebp - 0x5c]
add dword [0x480300], eax
mov eax, dword [0x480300]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041ef40
cmp byte [0x48037c], 0
pop ecx
jne 0x412ccf
mov ebx, 0x47f0a8
push 9
mov ecx, ebx
call fcn.0041afba
test al, al
jne 0x412c89
push 0xa
mov ecx, ebx
call fcn.0041afba
test al, al
je 0x412cd4
mov eax, dword [0x47f74c]
cmp eax, 4
jne 0x412cb3
mov eax, dword [ebp - 0x9c]
cmp eax, dword [0x47f6f8]
jae 0x413155
mov ecx, dword [0x47f6f4]
shl eax, 4
cmp dword [eax + ecx], esi
jmp 0x412cc8
cmp eax, 2
jne 0x412cc1
test byte [ebp - 0x98], 3
jmp 0x412cc8
test byte [ebp - 0x98], 1
jne 0x412cd4
jmp 0x413155
mov ebx, 0x47f0a8
push dword [ebp - 0x60]
call fcn.00413a33
test al, al
pop ecx
jne 0x412cef
push dword [ebp - 0x68]
call fcn.00415fa0
pop ecx
jmp 0x413155
lea ecx, [ebp - 0x2c]
call fcn.0041cf73
test byte [ebp - 0x94], 2
je 0x412d2c
lea eax, [ebp - 1]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00412400
cmp eax, esi
je 0x41314d
cmp eax, 0xffffffff
je 0x413177
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00417516
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0041b9e6
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, ebx
call fcn.0041c560
push 1
lea ecx, [ebp - 0x10]
pop edi
push edi
push esi
mov esi, 0x42cc78
push 2
push esi
push 0x42d13c
call fcn.0041dda7
push edi
push 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041d974
xor esi, esi
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0041de43
push eax
lea ecx, [ebp - 0x38]
call fcn.0041d047
cmp dword [ebp - 0x38], 3
jbe 0x412dac
push esi
lea ecx, [ebp - 0x38]
call fcn.0041decc
push eax
call fcn.0040e719
pop ecx
test al, al
pop ecx
je 0x41318b
lea ecx, [ebp - 0x38]
call fcn.0041decc
push eax
call fcn.0040ea5b
test al, al
pop ecx
je 0x41318b
lea ecx, [ebp - 0x38]
call fcn.0041decc
mov ebx, dword [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00415e78
test al, al
je 0x41316f
cmp dword [0x47f700], esi
je 0x412e0e
push 0xc
call fcn.00426169
cmp eax, esi
pop ecx
je 0x412dff
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0041d047
jmp 0x412e01
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x47f724
call fcn.0041fb7a
cmp byte [0x48037c], 0
jne 0x412e5d
push 0x47fee0
lea ecx, [ebp - 0x4c]
call fcn.0041d047
push 0x20
lea ecx, [ebp - 0x4c]
call fcn.0041d191
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041d25e
lea ecx, [ebp - 0x4c]
call fcn.0041decc
push eax
push 0x14
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x4c]
call fcn.0041d0a9
test byte [ebp - 0x90], 2
je 0x412e82
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041decc
push eax
mov ecx, ebx
call fcn.00415040
lea ecx, [ebp - 0x58]
xor bl, bl
mov dword [ebp - 0x20], esi
call fcn.0041cf73
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
call fcn.0040ea5b
test al, al
pop ecx
je 0x412f3d
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x10]
push eax
inc bl
call fcn.0041decc
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00411810
test eax, eax
jne 0x412f00
push esi
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x412f18
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00415a1e
test eax, eax
jne 0x412f26
push dword [ebp - 0x68]
call fcn.00415fa0
pop ecx
jmp 0x41313d
cmp dword [ebp - 0x20], edi
jne 0x412f3b
and dword [ebp - 0x90], 0xfffffffd
xor bl, bl
and dword [ebp - 0x94], 0xffffff9f
xor esi, esi
test byte [ebp - 0x94], 0x80
jne 0x412f4a
test bl, bl
jne 0x412f74
test byte [ebp - 0x90], 2
jne 0x412f74
test byte [ebp - 0x94], 0x40
jne 0x412f74
lea ecx, [ebp - 0x10]
call fcn.0041decc
push 0x47f8a4
push eax
mov ecx, 0x47f898
call fcn.00422fde
test byte [0x47f27c], 6
je 0x41302c
lea ecx, [ebp - 0xa8]
call fcn.0041cf73
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041de43
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041d12e
lea ecx, [ebp - 0xa8]
call fcn.0041df16
push edi
push 0x42d138
lea ecx, [ebp - 0xa8]
call fcn.0041d393
test al, al
je 0x412fe6
test byte [0x47f27c], 4
je 0x412fe6
test byte [ebp - 0x93], 1
jne 0x413021
lea eax, [ebp - 0x10]
mov ebx, 0x47f6ac
push eax
jmp 0x41300d
push edi
push 0x42d134
lea ecx, [ebp - 0xa8]
call fcn.0041d393
test al, al
je 0x413021
test byte [0x47f27c], 2
je 0x413021
lea eax, [ebp - 0x10]
mov ebx, 0x47f6a0
push eax
mov ecx, ebx
call fcn.0041d25e
push esi
push 0x42cc5c
mov ecx, ebx
call fcn.0041d1e0
lea ecx, [ebp - 0xa8]
call fcn.0041d0a9
cmp dword [ebp - 0x68], esi
mov byte [ebp - 1], 1
jne 0x41305f
push esi
push 0x80
push 2
push esi
push edi
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4130f5
mov eax, dword [ebp - 0x94]
and eax, edi
jne 0x4130ac
test byte [ebp - 0x94], 2
jne 0x4130ac
push dword [ebp - 0x68]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.0041decc
push eax
mov ecx, 0x47f7b8
call fcn.0041decc
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x4130cc
mov eax, dword [0x47f7e8]
sub eax, dword [0x480304]
push eax
call fcn.00415fa0
pop ecx
jmp 0x4130f5
cmp eax, esi
je 0x4130d2
push edi
lea ecx, [ebp - 0x10]
push dword [ebp - 0x68]
push dword [ebp - 0x1c]
call fcn.0041decc
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004113ff
test al, al
jne 0x4130f5
and byte [ebp - 1], 0
jmp 0x41313d
test byte [ebp - 0x94], 2
je 0x4130f5
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041decc
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00414c05
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041decc
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041553f
cmp dword [ebp - 0x20], 2
jne 0x413125
push 4
push esi
lea ecx, [ebp - 0x58]
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x94], 0x20
je 0x41313d
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00410e87
lea ecx, [ebp - 0x58]
call fcn.0041d0a9
lea ecx, [ebp - 0x38]
call fcn.0041d0a9
lea ecx, [ebp - 0x2c]
call fcn.0041d0a9
lea ecx, [ebp - 0x10]
call fcn.0041d0a9
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jae 0x4131c0
xor esi, esi
jmp 0x412ba6
lea ecx, [ebp - 0x38]
call fcn.0041d0a9
lea ecx, [ebp - 0x2c]
call fcn.0041d0a9
lea ecx, [ebp - 0x10]
call fcn.0041d0a9
xor al, al
jmp 0x4131c9
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x4c]
call fcn.0041cfe3
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041d25e
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041decc
push eax
push esi
mov ecx, ebx
call fcn.0041c44f
lea ecx, [ebp - 0x4c]
call fcn.0041d0a9
jmp 0x41316f
and byte [0x48038a], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret