Function at 0x412ae6
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, 0x47f3f0
push edi
push 0xbc
mov ecx, esi
mov byte [0x48039a], 1
call fcn.0041da60
push 0xc0
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0041da60
and byte [ebp - 1], 0
xor esi, esi
cmp dword [ebp - 0x40], esi
mov dword [0x480310], eax
mov dword [ebp - 0x18], esi
jbe 0x41314d
cmp byte [ebp - 1], 0
jne 0x412b8b
cmp dword [ebp - 0x18], esi
jbe 0x412b8b
mov eax, dword [0x42cfd4]
mov edx, dword [0x47f390]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x42cfd4], eax
jle 0x412b77
or dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x14]
dec eax
mov dword [0x42cfd4], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004149d3
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x48039c]
mov ecx, dword [0x47f390]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x480310], eax
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
mov dword [0x47f7f8], esi
mov dword [0x480314], esi
call fcn.0041cf28
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.0041268b
test eax, eax
jl 0x4130e2
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
lea eax, [eax + ecx*4 + 0x40]
add eax, dword [ebp - 0x5c]
add dword [0x480310], eax
mov eax, dword [0x480310]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041eeda
cmp byte [0x48038c], 0
pop ecx
jne 0x412c5c
mov ebx, 0x47f0b8
push 9
mov ecx, ebx
call fcn.0041af6f
test al, al
jne 0x412c16
push 0xa
mov ecx, ebx
call fcn.0041af6f
test al, al
je 0x412c61
mov eax, dword [0x47f75c]
cmp eax, 4
jne 0x412c40
mov eax, dword [ebp - 0x9c]
cmp eax, dword [0x47f708]
jae 0x4130e2
mov ecx, dword [0x47f704]
shl eax, 4
cmp dword [eax + ecx], esi
jmp 0x412c55
cmp eax, 2
jne 0x412c4e
test byte [ebp - 0x98], 3
jmp 0x412c55
test byte [ebp - 0x98], 1
jne 0x412c61
jmp 0x4130e2
mov ebx, 0x47f0b8
push dword [ebp - 0x60]
call fcn.004139c0
test al, al
pop ecx
jne 0x412c7c
push dword [ebp - 0x68]
call fcn.00415f4b
pop ecx
jmp 0x4130e2
lea ecx, [ebp - 0x2c]
call fcn.0041cf28
test byte [ebp - 0x94], 2
je 0x412cb9
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.0041238d
cmp eax, esi
je 0x4130da
cmp eax, 0xffffffff
je 0x413104
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004174c1
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0041b99b
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, ebx
call fcn.0041c515
push 1
lea ecx, [ebp - 0x10]
pop edi
push edi
push esi
mov esi, 0x42cc78
push 2
push esi
push 0x42d13c
call fcn.0041dd5c
push edi
push 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041d929
xor esi, esi
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0041ddf8
push eax
lea ecx, [ebp - 0x38]
call fcn.0041cffc
cmp dword [ebp - 0x38], 3
jbe 0x412d39
push esi
lea ecx, [ebp - 0x38]
call fcn.0041de81
push eax
call fcn.0040e6d2
pop ecx
test al, al
pop ecx
je 0x413118
lea ecx, [ebp - 0x38]
call fcn.0041de81
push eax
call fcn.0040ea14
test al, al
pop ecx
je 0x413118
lea ecx, [ebp - 0x38]
call fcn.0041de81
mov ebx, dword [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00415e23
test al, al
je 0x4130fc
cmp dword [0x47f710], esi
je 0x412d9b
push 0xc
call fcn.004260f9
cmp eax, esi
pop ecx
je 0x412d8c
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0041cffc
jmp 0x412d8e
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x47f734
call fcn.0041fb14
cmp byte [0x48038c], 0
jne 0x412dea
push 0x47fef0
lea ecx, [ebp - 0x4c]
call fcn.0041cffc
push 0x20
lea ecx, [ebp - 0x4c]
call fcn.0041d146
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041d213
lea ecx, [ebp - 0x4c]
call fcn.0041de81
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.0041d05e
test byte [ebp - 0x90], 2
je 0x412e0f
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041de81
push eax
mov ecx, ebx
call fcn.00414fcc
lea ecx, [ebp - 0x58]
xor bl, bl
mov dword [ebp - 0x20], esi
call fcn.0041cf28
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call fcn.0040ea14
test al, al
pop ecx
je 0x412eca
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x10]
push eax
inc bl
call fcn.0041de81
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0041179d
test eax, eax
jne 0x412e8d
push esi
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x412ea5
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.004159c9
test eax, eax
jne 0x412eb3
push dword [ebp - 0x68]
call fcn.00415f4b
pop ecx
jmp 0x4130ca
cmp dword [ebp - 0x20], edi
jne 0x412ec8
and dword [ebp - 0x90], 0xfffffffd
xor bl, bl
and dword [ebp - 0x94], 0xffffff9f
xor esi, esi
test byte [ebp - 0x94], 0x80
jne 0x412ed7
test bl, bl
jne 0x412f01
test byte [ebp - 0x90], 2
jne 0x412f01
test byte [ebp - 0x94], 0x40
jne 0x412f01
lea ecx, [ebp - 0x10]
call fcn.0041de81
push 0x47f8b4
push eax
mov ecx, 0x47f8a8
call fcn.00422f7e
test byte [0x47f28c], 6
je 0x412fb9
lea ecx, [ebp - 0xa8]
call fcn.0041cf28
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041ddf8
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041d0e3
lea ecx, [ebp - 0xa8]
call fcn.0041decb
push edi
push 0x42d138
lea ecx, [ebp - 0xa8]
call fcn.0041d348
test al, al
je 0x412f73
test byte [0x47f28c], 4
je 0x412f73
test byte [ebp - 0x93], 1
jne 0x412fae
lea eax, [ebp - 0x10]
mov ebx, 0x47f6bc
push eax
jmp 0x412f9a
push edi
push 0x42d134
lea ecx, [ebp - 0xa8]
call fcn.0041d348
test al, al
je 0x412fae
test byte [0x47f28c], 2
je 0x412fae
lea eax, [ebp - 0x10]
mov ebx, 0x47f6b0
push eax
mov ecx, ebx
call fcn.0041d213
push esi
push 0x42cc5c
mov ecx, ebx
call fcn.0041d195
lea ecx, [ebp - 0xa8]
call fcn.0041d05e
cmp dword [ebp - 0x68], esi
mov byte [ebp - 1], 1
jne 0x412fec
push esi
push 0x80
push 2
push esi
push edi
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413082
mov eax, dword [ebp - 0x94]
and eax, edi
jne 0x413039
test byte [ebp - 0x94], 2
jne 0x413039
push dword [ebp - 0x68]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.0041de81
push eax
mov ecx, 0x47f7c8
call fcn.0041de81
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x413059
mov eax, dword [0x47f7f8]
sub eax, dword [0x480314]
push eax
call fcn.00415f4b
pop ecx
jmp 0x413082
cmp eax, esi
je 0x41305f
push edi
lea ecx, [ebp - 0x10]
push dword [ebp - 0x68]
push dword [ebp - 0x1c]
call fcn.0041de81
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041138c
test al, al
jne 0x413082
and byte [ebp - 1], 0
jmp 0x4130ca
test byte [ebp - 0x94], 2
je 0x413082
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041de81
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00414b91
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041de81
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004154cb
cmp dword [ebp - 0x20], 2
jne 0x4130b2
push 4
push esi
lea ecx, [ebp - 0x58]
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x94], 0x20
je 0x4130ca
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00410e14
lea ecx, [ebp - 0x58]
call fcn.0041d05e
lea ecx, [ebp - 0x38]
call fcn.0041d05e
lea ecx, [ebp - 0x2c]
call fcn.0041d05e
lea ecx, [ebp - 0x10]
call fcn.0041d05e
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jae 0x41314d
xor esi, esi
jmp 0x412b33
lea ecx, [ebp - 0x38]
call fcn.0041d05e
lea ecx, [ebp - 0x2c]
call fcn.0041d05e
lea ecx, [ebp - 0x10]
call fcn.0041d05e
xor al, al
jmp 0x413156
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x4c]
call fcn.0041cf98
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041d213
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041de81
push eax
push esi
mov ecx, ebx
call fcn.0041c404
lea ecx, [ebp - 0x4c]
call fcn.0041d05e
jmp 0x4130fc
and byte [0x48039a], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret