Function at 0x415a20
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x463568
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 0x469cb4
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x30], 0
call fcn.00447d79
add esp, 0xc
test eax, eax
jne 0x415a7e
mov edx, dword [esp + 0x10]
push edx
call fcn.00447a48
mov eax, dword [esp + 0x34]
add esp, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [0x48807c]
mov edx, dword [0x488078]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
push ecx
push edx
push eax
push ebp
call fcn.00448960
add eax, 1
adc edx, 0
cmp byte [esi + 0xb3a0], 0
mov edi, eax
mov dword [esp + 0x18], edx
je 0x415ae7
mov eax, dword [0x488084]
cdq
cmp edi, eax
mov ebp, ecx
jne 0x415ac2
cmp dword [esp + 0x18], edx
je 0x415ad9
mov ecx, esi
call fcn.004153e0
test al, al
jne 0x415ad9
mov byte [0x488027], 1
jmp 0x415e21
mov dword [esi + 0xb390], ebp
mov dword [esi + 0xb394], ebx
jmp 0x415aeb
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 0x415e21
push 1
sub esp, 0xc
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00422580
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x48], edi
call fcn.00414b20
test al, al
mov byte [esi + 0x918], al
je 0x415e21
mov ecx, dword [esp + 0x40]
or ecx, dword [esp + 0x44]
jne 0x415b83
mov ecx, edi
call fcn.00414a30
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00422390
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 0x24
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.00414820
add esp, 0x14
cmp byte [esp + 0x48], 0
je 0x415bf6
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
push ebx
push ebp
mov ecx, edi
call fcn.00414790
push eax
mov ecx, esi
call fcn.004158f0
lea ecx, [esp + 0x2c]
mov bl, al
mov dword [esp + 0x24], 0xffffffff
call fcn.00422390
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 0x24
lea ebx, [esi + 0x848]
push ebx
push 0
push 5
push 0x4937e0
mov ecx, esi
call fcn.004156d0
test al, al
jne 0x415c18
mov ecx, edi
jmp 0x415e1c
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.004156d0
test al, al
je 0x415c11
mov edi, dword [esi + 0xb180]
sub edi, 0xd
push edi
mov dword [0x4937b0], edi
call fcn.00447521
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [0x4937bc], eax
je 0x415e18
push ebx
push ebp
push edi
push eax
mov ecx, esi
call fcn.004156d0
test al, al
je 0x415e18
mov cl, byte [0x4937e0]
cmp cl, 0x2d
mov byte [0x4937dc], cl
mov dword [0x4937d0], ebp
jb 0x415cbe
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 [0x4937d0], eax
lea ebx, [ebx]
add cl, 0xd3
sub eax, 1
jne 0x415cb0
mov byte [0x4937dc], cl
cmp cl, 9
mov dword [0x4937d4], ebp
jb 0x415cee
movzx edx, cl
mov eax, 0x38e38e39
mul edx
shr edx, 1
movzx eax, dl
mov dword [0x4937d4], eax
lea ecx, [ecx]
add cl, 0xf7
sub eax, 1
jne 0x415ce0
mov byte [0x4937dc], cl
mov eax, dword [0x4937d4]
movzx edi, cl
lea ecx, [edi + eax]
mov ebp, 0x300
shl ebp, cl
mov ecx, dword [esi + 0x838]
push ecx
mov dword [0x4937d8], edi
lea ebp, [ebp + ebp + 0xe6c]
mov dword [0x4937a8], ebp
call fcn.00447521
mov ebx, eax
push ebp
mov dword [0x4937b8], ebx
call fcn.00447521
add esp, 8
test ebx, ebx
mov dword [0x4937b4], eax
je 0x415e18
test eax, eax
je 0x415e18
mov ecx, dword [0x4937bc]
mov edx, dword [0x4937b0]
push 0x4937ac
mov dword [0x4937c4], ecx
mov dword [0x4937c8], edx
mov dword [0x4937c0], 0x414f80
mov eax, dword [esi + 0x838]
push eax
mov eax, dword [0x4937b4]
push ebx
push edx
mov edx, dword [0x4937d4]
push ecx
mov ecx, dword [0x4937d0]
push ecx
push edx
push edi
push ebp
push eax
call fcn.0041ce00
add esp, 0x28
test eax, eax
mov dword [0x4937cc], eax
jne 0x415e18
mov ecx, dword [esi + 0x83c]
mov edx, dword [esi + 0x838]
mov eax, dword [0x4937b8]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00414fd0
mov ecx, dword [esp + 0x38]
call fcn.00414a30
mov ecx, dword [0x4937b4]
push ecx
call fcn.00447444
mov edx, dword [0x4937b8]
push edx
call fcn.00447444
mov eax, dword [0x4937bc]
push eax
call fcn.00447444
add esp, 0xc
cmp byte [0x488027], 0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
jne 0x415e2d
call fcn.00422390
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 0x24
mov ecx, dword [esp + 0x38]
call fcn.00414a30
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00422390
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 0x24