Function at 0x4157a0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x462d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x30]
push 0x468cb4
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x30], 0
call fcn.00447589
add esp, 0xc
test eax, eax
jne 0x4157fe
mov edx, dword [esp + 0x10]
push edx
call fcn.00447258
mov eax, dword [esp + 0x34]
add esp, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [0x48707c]
mov edx, dword [0x487078]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
push ecx
push edx
push eax
push ebp
call fcn.00448170
add eax, 1
adc edx, 0
cmp byte [esi + 0xb3a0], 0
mov edi, eax
mov dword [esp + 0x18], edx
je 0x415867
mov eax, dword [0x487084]
cdq
cmp edi, eax
mov ebp, ecx
jne 0x415842
cmp dword [esp + 0x18], edx
je 0x415859
mov ecx, esi
call fcn.00415160
test al, al
jne 0x415859
mov byte [0x487027], 1
jmp 0x415ba1
mov dword [esi + 0xb390], ebp
mov dword [esi + 0xb394], ebx
jmp 0x41586b
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
cmp dword [esi + 0x1160], eax
mov dword [esi + 0xb388], eax
mov dword [esi + 0xb38c], eax
mov dword [esi + 0xb180], ecx
mov dword [esi + 0xb184], edx
je 0x415ba1
push 1
sub esp, 0xc
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00421d90
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x48], edi
call fcn.004148a0
test al, al
mov byte [esi + 0x918], al
je 0x415ba1
mov ecx, dword [esp + 0x40]
or ecx, dword [esp + 0x44]
jne 0x415903
mov ecx, edi
call fcn.004147b0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00421ba0
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x20
xor eax, eax
lea edx, [esi + 0x840]
push edx
push eax
push ebx
mov dword [esi + 0x1158], eax
mov dword [esi + 0x115c], eax
mov eax, dword [esi + 0x1160]
push ebp
push eax
call fcn.004145a0
add esp, 0x14
cmp byte [esp + 0x48], 0
je 0x415976
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
push ebx
push ebp
mov ecx, edi
call fcn.00414510
push eax
mov ecx, esi
call fcn.00415670
lea ecx, [esp + 0x2c]
mov bl, al
mov dword [esp + 0x24], 0xffffffff
call fcn.00421ba0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x20
lea ebx, [esi + 0x848]
push ebx
push 0
push 5
push 0x4927e0
mov ecx, esi
call fcn.00415450
test al, al
jne 0x415998
mov ecx, edi
jmp 0x415b9c
push ebx
push 0
lea eax, [esi + 0x838]
push 8
push eax
mov ecx, esi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00415450
test al, al
je 0x415991
mov edi, dword [esi + 0xb180]
sub edi, 0xd
push edi
mov dword [0x4927b0], edi
call fcn.00446d30
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [0x4927bc], eax
je 0x415b98
push ebx
push ebp
push edi
push eax
mov ecx, esi
call fcn.00415450
test al, al
je 0x415b98
mov cl, byte [0x4927e0]
cmp cl, 0x2d
mov byte [0x4927dc], cl
mov dword [0x4927d0], ebp
jb 0x415a3e
movzx edi, cl
mov eax, 0x6c16c16d
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movzx eax, al
mov dword [0x4927d0], eax
lea ebx, [ebx]
add cl, 0xd3
sub eax, 1
jne 0x415a30
mov byte [0x4927dc], cl
cmp cl, 9
mov dword [0x4927d4], ebp
jb 0x415a6e
movzx edx, cl
mov eax, 0x38e38e39
mul edx
shr edx, 1
movzx eax, dl
mov dword [0x4927d4], eax
lea ecx, [ecx]
add cl, 0xf7
sub eax, 1
jne 0x415a60
mov byte [0x4927dc], cl
mov eax, dword [0x4927d4]
movzx edi, cl
lea ecx, [edi + eax]
mov ebp, 0x300
shl ebp, cl
mov ecx, dword [esi + 0x838]
push ecx
mov dword [0x4927d8], edi
lea ebp, [ebp + ebp + 0xe6c]
mov dword [0x4927a8], ebp
call fcn.00446d30
mov ebx, eax
push ebp
mov dword [0x4927b8], ebx
call fcn.00446d30
add esp, 8
test ebx, ebx
mov dword [0x4927b4], eax
je 0x415b98
test eax, eax
je 0x415b98
mov ecx, dword [0x4927bc]
mov edx, dword [0x4927b0]
push 0x4927ac
mov dword [0x4927c4], ecx
mov dword [0x4927c8], edx
mov dword [0x4927c0], 0x414d00
mov eax, dword [esi + 0x838]
push eax
mov eax, dword [0x4927b4]
push ebx
push edx
mov edx, dword [0x4927d4]
push ecx
mov ecx, dword [0x4927d0]
push ecx
push edx
push edi
push ebp
push eax
call fcn.0041c610
add esp, 0x28
test eax, eax
mov dword [0x4927cc], eax
jne 0x415b98
mov ecx, dword [esi + 0x83c]
mov edx, dword [esi + 0x838]
mov eax, dword [0x4927b8]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00414d50
mov ecx, dword [esp + 0x38]
call fcn.004147b0
mov ecx, dword [0x4927b4]
push ecx
call fcn.00446c53
mov edx, dword [0x4927b8]
push edx
call fcn.00446c53
mov eax, dword [0x4927bc]
push eax
call fcn.00446c53
add esp, 0xc
cmp byte [0x487027], 0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jne 0x415bad
call fcn.00421ba0
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x20
mov ecx, dword [esp + 0x38]
call fcn.004147b0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00421ba0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x20