Function at 0x4126cc
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, 0x47f360
push edi
push 0xbc
mov ecx, esi
mov byte [0x4802fa], 1
call fcn.0041d2e3
push 0xc0
mov ecx, esi
mov dword [ebp - 0x40], eax
call fcn.0041d2e3
and byte [ebp - 1], 0
xor esi, esi
cmp dword [ebp - 0x40], esi
mov dword [0x480270], eax
mov dword [ebp - 0x18], esi
jbe 0x412d33
cmp byte [ebp - 1], 0
jne 0x412771
cmp dword [ebp - 0x18], esi
jbe 0x412771
mov eax, dword [0x42cfb0]
mov edx, dword [0x47f300]
mov ecx, eax
lea eax, [eax + edx - 1]
cmp eax, ecx
mov dword [0x42cfb0], eax
jle 0x41275d
or dword [ebp - 0x3c], 0xffffffff
mov ecx, dword [ebp - 0x14]
dec eax
mov dword [0x42cfb0], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004144a6
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4802fc]
mov ecx, dword [0x47f300]
mov eax, dword [eax + ecx*4 - 4]
mov dword [0x480270], eax
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
mov dword [0x47f768], esi
mov dword [0x480274], esi
call fcn.0041c7ab
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.00412271
test eax, eax
jl 0x412cc8
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
lea eax, [eax + ecx*4 + 0x40]
add eax, dword [ebp - 0x5c]
add dword [0x480270], eax
mov eax, dword [0x480270]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041e759
cmp byte [0x4802ec], 0
pop ecx
jne 0x412842
mov ebx, 0x47f028
push 9
mov ecx, ebx
call fcn.0041a7fa
test al, al
jne 0x4127fc
push 0xa
mov ecx, ebx
call fcn.0041a7fa
test al, al
je 0x412847
mov eax, dword [0x47f6cc]
cmp eax, 4
jne 0x412826
mov eax, dword [ebp - 0x9c]
cmp eax, dword [0x47f678]
jae 0x412cc8
mov ecx, dword [0x47f674]
shl eax, 4
cmp dword [eax + ecx], esi
jmp 0x41283b
cmp eax, 2
jne 0x412834
test byte [ebp - 0x98], 3
jmp 0x41283b
test byte [ebp - 0x98], 1
jne 0x412847
jmp 0x412cc8
mov ebx, 0x47f028
push dword [ebp - 0x60]
call fcn.004134e1
test al, al
pop ecx
jne 0x412862
push dword [ebp - 0x68]
call fcn.004159bc
pop ecx
jmp 0x412cc8
lea ecx, [ebp - 0x2c]
call fcn.0041c7ab
test byte [ebp - 0x94], 2
je 0x41289f
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.00411f73
cmp eax, esi
je 0x412cc0
cmp eax, 0xffffffff
je 0x412cea
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00416e92
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0041b21e
lea eax, [ebp - 0x10]
push 0x7fffffff
push eax
mov ecx, ebx
call fcn.0041bd98
push 1
lea ecx, [ebp - 0x10]
pop edi
push edi
push esi
mov esi, 0x42cc6c
push 2
push esi
push 0x42d1ec
call fcn.0041d5df
push edi
push 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041d1c1
xor esi, esi
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0041d67b
push eax
lea ecx, [ebp - 0x38]
call fcn.0041c87f
cmp dword [ebp - 0x38], 3
jbe 0x41291f
push esi
lea ecx, [ebp - 0x38]
call fcn.0041d704
push eax
call fcn.0040e4b7
pop ecx
test al, al
pop ecx
je 0x412cfe
lea ecx, [ebp - 0x38]
call fcn.0041d704
push eax
call fcn.0040e7f9
test al, al
pop ecx
je 0x412cfe
lea ecx, [ebp - 0x38]
call fcn.0041d704
mov ebx, dword [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00415894
test al, al
je 0x412ce2
cmp dword [0x47f680], esi
je 0x412981
push 0xc
call fcn.004258e9
cmp eax, esi
pop ecx
je 0x412972
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0041c87f
jmp 0x412974
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x47f6a4
call fcn.0041f303
cmp byte [0x4802ec], 0
jne 0x4129d0
push 0x47fe50
lea ecx, [ebp - 0x4c]
call fcn.0041c87f
push 0x20
lea ecx, [ebp - 0x4c]
call fcn.0041c9de
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041caab
lea ecx, [ebp - 0x4c]
call fcn.0041d704
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.0041c8e1
test byte [ebp - 0x90], 2
je 0x4129f5
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x10]
shr eax, 5
and al, 1
push eax
call fcn.0041d704
push eax
mov ecx, ebx
call fcn.00414a9f
lea ecx, [ebp - 0x58]
xor bl, bl
mov dword [ebp - 0x20], esi
call fcn.0041c7ab
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
call fcn.0040e7f9
test al, al
pop ecx
je 0x412ab0
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x10]
push eax
inc bl
call fcn.0041d704
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00411383
test eax, eax
jne 0x412a73
push esi
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x412a8b
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.0041547a
test eax, eax
jne 0x412a99
push dword [ebp - 0x68]
call fcn.004159bc
pop ecx
jmp 0x412cb0
cmp dword [ebp - 0x20], edi
jne 0x412aae
and dword [ebp - 0x90], 0xfffffffd
xor bl, bl
and dword [ebp - 0x94], 0xffffff9f
xor esi, esi
test byte [ebp - 0x94], 0x80
jne 0x412abd
test bl, bl
jne 0x412ae7
test byte [ebp - 0x90], 2
jne 0x412ae7
test byte [ebp - 0x94], 0x40
jne 0x412ae7
lea ecx, [ebp - 0x10]
call fcn.0041d704
push 0x47f804
push eax
mov ecx, 0x47f7f8
call fcn.0042276d
test byte [0x47f1fc], 6
je 0x412b9f
lea ecx, [ebp - 0xa8]
call fcn.0041c7ab
mov eax, dword [ebp - 0x10]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x10]
push eax
call fcn.0041d67b
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041c966
lea ecx, [ebp - 0xa8]
call fcn.0041d74e
push edi
push 0x42d1e8
lea ecx, [ebp - 0xa8]
call fcn.0041cbe0
test al, al
je 0x412b59
test byte [0x47f1fc], 4
je 0x412b59
test byte [ebp - 0x93], 1
jne 0x412b94
lea eax, [ebp - 0x10]
mov ebx, 0x47f62c
push eax
jmp 0x412b80
push edi
push 0x42d1e4
lea ecx, [ebp - 0xa8]
call fcn.0041cbe0
test al, al
je 0x412b94
test byte [0x47f1fc], 2
je 0x412b94
lea eax, [ebp - 0x10]
mov ebx, 0x47f620
push eax
mov ecx, ebx
call fcn.0041caab
push esi
push 0x42cc50
mov ecx, ebx
call fcn.0041ca2d
lea ecx, [ebp - 0xa8]
call fcn.0041c8e1
cmp dword [ebp - 0x68], esi
mov byte [ebp - 1], 1
jne 0x412bd2
push esi
push 0x80
push 2
push esi
push edi
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c68
mov eax, dword [ebp - 0x94]
and eax, edi
jne 0x412c1f
test byte [ebp - 0x94], 2
jne 0x412c1f
push dword [ebp - 0x68]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.0041d704
push eax
mov ecx, 0x47f738
call fcn.0041d704
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x412c3f
mov eax, dword [0x47f768]
sub eax, dword [0x480274]
push eax
call fcn.004159bc
pop ecx
jmp 0x412c68
cmp eax, esi
je 0x412c45
push edi
lea ecx, [ebp - 0x10]
push dword [ebp - 0x68]
push dword [ebp - 0x1c]
call fcn.0041d704
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00411000
test al, al
jne 0x412c68
and byte [ebp - 1], 0
jmp 0x412cb0
test byte [ebp - 0x94], 2
je 0x412c68
lea ecx, [ebp - 0x10]
call fcn.0041d704
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041d704
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00414664
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041d704
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00414f7c
cmp dword [ebp - 0x20], 2
jne 0x412c98
push 4
push esi
lea ecx, [ebp - 0x58]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test byte [ebp - 0x94], 0x20
je 0x412cb0
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00410a88
lea ecx, [ebp - 0x58]
call fcn.0041c8e1
lea ecx, [ebp - 0x38]
call fcn.0041c8e1
lea ecx, [ebp - 0x2c]
call fcn.0041c8e1
lea ecx, [ebp - 0x10]
call fcn.0041c8e1
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x40]
jae 0x412d33
xor esi, esi
jmp 0x412719
lea ecx, [ebp - 0x38]
call fcn.0041c8e1
lea ecx, [ebp - 0x2c]
call fcn.0041c8e1
lea ecx, [ebp - 0x10]
call fcn.0041c8e1
xor al, al
jmp 0x412d3c
push str.Failure_while_trying_to_install_file
lea ecx, [ebp - 0x4c]
call fcn.0041c81b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
push eax
call fcn.0041caab
push esi
lea ecx, [ebp - 0x4c]
call fcn.0041d704
push eax
push esi
mov ecx, ebx
call fcn.0041bc87
lea ecx, [ebp - 0x4c]
call fcn.0041c8e1
jmp 0x412ce2
and byte [0x4802fa], 0
mov al, 1
pop edi
pop esi
pop ebx
leave
ret