Function at 0x411df7
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, 0x47e2f0
push edi
push 0xbc
mov ecx, esi
mov byte [0x47f28a], 1
call fcn.0041c8fd
push 0xc0
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0041c8fd
and byte [ebp - 1], 0
xor esi, esi
cmp dword [ebp - 0x40], esi
mov dword [0x47f200], eax
mov dword [ebp - 0x18], esi
jbe 0x41245e
cmp byte [ebp - 1], 0
jne 0x411e9c
cmp dword [ebp - 0x18], esi
jbe 0x411e9c
mov eax, dword [0x42bf9c]
mov edx, dword [0x47e290]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x42bf9c], eax
jle 0x411e88
or dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x14]
dec eax
mov dword [0x42bf9c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00413a88
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47f28c]
mov ecx, dword [0x47e290]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x47f200], eax
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
mov dword [0x47e6f8], esi
mov dword [0x47f204], esi
call fcn.0041bdc5
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.0041199c
test eax, eax
jl 0x4123f3
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
lea eax, [eax + ecx*4 + 0x40]
add eax, dword [ebp - 0x5c]
add dword [0x47f200], eax
mov eax, dword [0x47f200]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041dcd0
cmp byte [0x47f27c], 0
pop ecx
jne 0x411f6d
mov ebx, 0x47dfb8
push 9
mov ecx, ebx
call fcn.00419e38
test al, al
jne 0x411f27
push 0xa
mov ecx, ebx
call fcn.00419e38
test al, al
je 0x411f72
mov eax, dword [0x47e65c]
cmp eax, 4
jne 0x411f51
mov eax, dword [ebp - 0x9c]
cmp eax, dword [0x47e608]
jae 0x4123f3
mov ecx, dword [0x47e604]
shl eax, 4
cmp dword [eax + ecx], esi
jmp 0x411f66
cmp eax, 2
jne 0x411f5f
test byte [ebp - 0x98], 3
jmp 0x411f66
test byte [ebp - 0x98], 1
jne 0x411f72
jmp 0x4123f3
mov ebx, 0x47dfb8
lea ecx, [ebp - 0x24]
call fcn.0041bdc5
test byte [ebp - 0x94], 2
je 0x411faf
lea eax, [ebp - 1]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00411692
cmp eax, esi
je 0x4123eb
cmp eax, 0xffffffff
je 0x412415
push dword [ebp - 0x60]
call fcn.00412ba7
test al, al
pop ecx
jne 0x411fca
push dword [ebp - 0x68]
call fcn.00414f7f
pop ecx
jmp 0x4123eb
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004164b1
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0041a81a
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, ebx
call fcn.0041b3b9
push 1
lea ecx, [ebp - 0x10]
pop edi
push edi
push esi
mov esi, 0x42bc5c
push 2
push esi
push 0x42c1d8
call fcn.0041cbf9
push edi
push 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041c7db
xor esi, esi
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0041cc95
push eax
lea ecx, [ebp - 0x38]
call fcn.0041be99
cmp dword [ebp - 0x38], 3
jbe 0x41204a
push esi
lea ecx, [ebp - 0x38]
call fcn.0041cd1e
push eax
call fcn.0040dc10
pop ecx
test al, al
pop ecx
je 0x412429
lea ecx, [ebp - 0x38]
call fcn.0041cd1e
push eax
call fcn.0040df52
test al, al
pop ecx
je 0x412429
lea ecx, [ebp - 0x38]
call fcn.0041cd1e
mov ebx, dword [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00414e57
test al, al
je 0x41240d
cmp dword [0x47e610], esi
je 0x4120ac
push 0xc
call fcn.00424dd9
cmp eax, esi
pop ecx
je 0x41209d
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0041be99
jmp 0x41209f
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x47e634
call fcn.0041e87a
cmp byte [0x47f27c], 0
jne 0x4120fb
push 0x47ede0
lea ecx, [ebp - 0x4c]
call fcn.0041be99
push 0x20
lea ecx, [ebp - 0x4c]
call fcn.0041bff8
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041c0c5
lea ecx, [ebp - 0x4c]
call fcn.0041cd1e
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.0041befb
test byte [ebp - 0x90], 2
je 0x412120
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041cd1e
push eax
mov ecx, ebx
call fcn.00414081
lea ecx, [ebp - 0x58]
xor bl, bl
mov dword [ebp - 0x2c], esi
call fcn.0041bdc5
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push eax
call fcn.0040df52
test al, al
pop ecx
je 0x4121db
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x10]
push eax
inc bl
call fcn.0041cd1e
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00410aa5
test eax, eax
jne 0x41219e
push esi
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4121b6
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.00414a3d
test eax, eax
jne 0x4121c4
push dword [ebp - 0x68]
call fcn.00414f7f
pop ecx
jmp 0x4123db
cmp dword [ebp - 0x2c], edi
jne 0x4121d9
and dword [ebp - 0x90], 0xfffffffd
xor bl, bl
and dword [ebp - 0x94], 0xffffff9f
xor esi, esi
test byte [ebp - 0x94], 0x80
jne 0x4121e8
test bl, bl
jne 0x412212
test byte [ebp - 0x90], 2
jne 0x412212
test byte [ebp - 0x94], 0x40
jne 0x412212
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push 0x47e794
push eax
mov ecx, 0x47e788
call fcn.00421ce6
test byte [0x47e18c], 6
je 0x4122ca
lea ecx, [ebp - 0xa8]
call fcn.0041bdc5
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041cc95
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041bf80
lea ecx, [ebp - 0xa8]
call fcn.0041cd68
push edi
push 0x42c1d4
lea ecx, [ebp - 0xa8]
call fcn.0041c1fa
test al, al
je 0x412284
test byte [0x47e18c], 4
je 0x412284
test byte [ebp - 0x93], 1
jne 0x4122bf
lea eax, [ebp - 0x10]
mov ebx, 0x47e5bc
push eax
jmp 0x4122ab
push edi
push 0x42c1d0
lea ecx, [ebp - 0xa8]
call fcn.0041c1fa
test al, al
je 0x4122bf
test byte [0x47e18c], 2
je 0x4122bf
lea eax, [ebp - 0x10]
mov ebx, 0x47e5b0
push eax
mov ecx, ebx
call fcn.0041c0c5
push esi
push 0x42bc40
mov ecx, ebx
call fcn.0041c047
lea ecx, [ebp - 0xa8]
call fcn.0041befb
cmp dword [ebp - 0x68], esi
mov byte [ebp - 1], 1
jne 0x4122fd
push esi
push 0x80
push 2
push esi
push edi
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412393
mov eax, dword [ebp - 0x94]
and eax, edi
jne 0x41234a
test byte [ebp - 0x94], 2
jne 0x41234a
push dword [ebp - 0x68]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.0041cd1e
push eax
mov ecx, 0x47e6c8
call fcn.0041cd1e
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x41236a
mov eax, dword [0x47e6f8]
sub eax, dword [0x47f204]
push eax
call fcn.00414f7f
pop ecx
jmp 0x412393
cmp eax, esi
je 0x412370
push edi
lea ecx, [ebp - 0x10]
push dword [ebp - 0x68]
push dword [ebp - 0x28]
call fcn.0041cd1e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00410722
test al, al
jne 0x412393
and byte [ebp - 1], 0
jmp 0x4123db
test byte [ebp - 0x94], 2
je 0x412393
lea ecx, [ebp - 0x10]
call fcn.0041cd1e
push eax
lea ecx, [ebp - 0x24]
call fcn.0041cd1e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00413c46
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041cd1e
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041455e
cmp dword [ebp - 0x2c], 2
jne 0x4123c3
push 4
push esi
lea ecx, [ebp - 0x58]
call fcn.0041cd1e
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x94], 0x20
je 0x4123db
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.004101aa
lea ecx, [ebp - 0x58]
call fcn.0041befb
lea ecx, [ebp - 0x38]
call fcn.0041befb
lea ecx, [ebp - 0x24]
call fcn.0041befb
lea ecx, [ebp - 0x10]
call fcn.0041befb
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jae 0x41245e
xor esi, esi
jmp 0x411e44
lea ecx, [ebp - 0x38]
call fcn.0041befb
lea ecx, [ebp - 0x24]
call fcn.0041befb
lea ecx, [ebp - 0x10]
call fcn.0041befb
xor al, al
jmp 0x412467
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x4c]
call fcn.0041be35
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041c0c5
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041cd1e
push eax
push esi
mov ecx, ebx
call fcn.0041b2a8
lea ecx, [ebp - 0x4c]
call fcn.0041befb
jmp 0x41240d
and byte [0x47f28a], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret