Function at 0x4152d0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x451b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x2c]
push 0x456e28
push eax
mov dword [esp + 0x28], 0
call fcn.00434145
add esp, 8
test eax, eax
je 0x415325
push eax
call fcn.00433fba
mov ecx, dword [esp + 0x30]
add esp, 4
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x46b19c]
mov eax, dword [0x46b198]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
call fcn.004345d0
add eax, 1
adc edx, 0
cmp byte [esi + 0xb3a0], 0
mov edi, ebx
mov ebp, eax
mov dword [esp + 0x14], edx
je 0x41538f
mov eax, dword [0x46b1a4]
cdq
cmp ebp, eax
mov ebx, ecx
jne 0x41536a
cmp dword [esp + 0x14], edx
je 0x415381
mov ecx, esi
call fcn.00414c90
test al, al
jne 0x415381
mov byte [0x46b147], 1
jmp 0x4156be
mov dword [esi + 0xb390], ebx
mov dword [esi + 0xb394], edi
jmp 0x415397
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp dword [esi + 0x1160], eax
mov dword [esi + 0xb388], eax
mov dword [esi + 0xb38c], eax
mov dword [esi + 0xb180], ebp
mov dword [esi + 0xb184], ecx
je 0x4156be
push 1
sub esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.00421630
lea ecx, [esi + 8]
mov dword [esp + 0x44], ecx
call fcn.004143d0
test al, al
mov byte [esi + 0x918], al
je 0x4156be
mov eax, ebp
or eax, dword [esp + 0x40]
jne 0x41542d
mov ecx, dword [esp + 0x34]
call fcn.004142e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.004214a0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
mov edx, dword [esi + 0x1160]
xor eax, eax
lea ecx, [esi + 0x840]
push ecx
push eax
push edi
push ebx
push edx
mov dword [esi + 0x1158], eax
mov dword [esi + 0x115c], eax
call fcn.004140d0
add esp, 0x14
cmp byte [esp + 0x44], 0
je 0x41549e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
push eax
push ebp
push edi
push ebx
call fcn.00414040
push eax
mov ecx, esi
call fcn.004151a0
lea ecx, [esp + 0x28]
mov bl, al
mov dword [esp + 0x20], 0xffffffff
call fcn.004214a0
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
lea ebx, [esi + 0x848]
push ebx
xor ebp, ebp
push ebp
push 5
push 0x476908
mov ecx, esi
call fcn.00414f80
test al, al
je 0x4156b5
push ebx
push ebp
lea edi, [esi + 0x838]
push 8
push edi
mov ecx, esi
mov dword [edi], ebp
mov dword [edi + 4], ebp
call fcn.00414f80
test al, al
je 0x4156b5
mov eax, dword [esi + 0xb180]
sub eax, 0xd
push eax
mov dword [0x4768d8], eax
call fcn.00433f5c
add esp, 4
cmp eax, ebp
mov dword [0x4768e4], eax
je 0x4156b5
mov ecx, dword [0x4768d8]
push ebx
push ebp
push ecx
push eax
mov ecx, esi
call fcn.00414f80
test al, al
je 0x4156b5
mov cl, byte [0x476908]
cmp cl, 0x2d
mov byte [0x476904], cl
mov dword [0x4768f8], ebp
jb 0x41555e
movzx ebx, cl
mov eax, 0x6c16c16d
mul ebx
sub ebx, edx
shr ebx, 1
add ebx, edx
shr ebx, 5
movzx eax, bl
mov dword [0x4768f8], eax
lea esp, [esp]
add cl, 0xd3
sub eax, 1
jne 0x415550
mov byte [0x476904], cl
xor edx, edx
cmp cl, 9
mov dword [0x4768fc], edx
jb 0x415590
movzx edx, cl
mov eax, 0x38e38e39
mul edx
shr edx, 1
movzx eax, dl
mov edx, eax
mov dword [0x4768fc], edx
add cl, 0xf7
sub eax, 1
jne 0x415582
mov byte [0x476904], cl
movzx eax, cl
lea ecx, [eax + edx]
mov edx, dword [edi]
mov dword [0x476900], eax
mov eax, 0x300
shl eax, cl
push edx
lea ecx, [eax + eax + 0xe6c]
mov dword [0x4768d0], ecx
call fcn.00433f5c
mov dword [0x4768e0], eax
mov eax, dword [0x4768d0]
push eax
call fcn.00433f5c
mov ebx, dword [0x4768e0]
add esp, 8
cmp ebx, ebp
mov dword [0x4768dc], eax
je 0x4156b5
cmp eax, ebp
je 0x4156b5
mov ecx, dword [0x4768e4]
mov edx, dword [0x4768d8]
push 0x4768d4
mov dword [0x4768ec], ecx
mov dword [0x4768f0], edx
mov dword [0x4768e8], 0x414840
mov ebp, dword [edi]
push ebp
push ebx
push edx
mov edx, dword [0x4768fc]
push ecx
mov ecx, dword [0x4768f8]
push ecx
mov ecx, dword [0x476900]
push edx
mov edx, dword [0x4768d0]
push ecx
push edx
push eax
call fcn.0041bff0
add esp, 0x28
test eax, eax
mov dword [0x4768f4], eax
jne 0x4156b5
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [0x4768e0]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00414890
mov ecx, dword [esp + 0x34]
call fcn.004142e0
mov eax, dword [0x4768dc]
push eax
call fcn.00433e44
mov ecx, dword [0x4768e0]
push ecx
call fcn.00433e44
mov edx, dword [0x4768e4]
push edx
call fcn.00433e44
add esp, 0xc
cmp byte [0x46b147], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
jne 0x4156ca
call fcn.004214a0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
mov ecx, dword [esp + 0x34]
call fcn.004142e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.004214a0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x20