Function at 0x415020
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x460648
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x484904]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x34]
push 0x467e10
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x34], 0
call fcn.00444d67
add esp, 0xc
test eax, eax
jne 0x415089
mov edx, dword [esp + 0x14]
push edx
call fcn.00444c27
mov eax, dword [esp + 0x38]
add esp, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [0x48609c]
mov edx, dword [0x486098]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push ecx
push edx
push eax
push ebp
call fcn.00445680
add eax, 1
adc edx, 0
cmp byte [esi + 0xb3a0], 0
mov edi, eax
mov dword [esp + 0x1c], edx
je 0x4150f2
mov eax, dword [0x4860a4]
cdq
cmp edi, eax
mov ebp, ecx
jne 0x4150cd
cmp dword [esp + 0x1c], edx
je 0x4150e4
mov ecx, esi
call fcn.004149e0
test al, al
jne 0x4150e4
mov byte [0x486047], 1
jmp 0x4153f0
mov dword [esi + 0xb390], ebp
mov dword [esi + 0xb394], ebx
jmp 0x4150f6
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
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 0x4153f0
push 1
sub esp, 0xc
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.0041f330
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x4c], edi
call fcn.00414090
test al, al
mov byte [esi + 0x918], al
je 0x4153f0
mov ecx, dword [esp + 0x44]
or ecx, dword [esp + 0x48]
jne 0x41517e
mov ecx, edi
call fcn.00413fc0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f1d0
mov al, 1
jmp 0x415403
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.00413eb0
add esp, 0x14
cmp byte [esp + 0x4c], 0
je 0x4151e1
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
push edx
push ebx
push ebp
mov ecx, edi
call fcn.00413e20
push eax
mov ecx, esi
call fcn.00414ef0
lea ecx, [esp + 0x30]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f1d0
mov al, bl
jmp 0x415403
lea ebx, [esi + 0x848]
push ebx
push 0
push 5
push 0x491808
mov ecx, esi
call fcn.00414cd0
test al, al
jne 0x415203
mov ecx, edi
jmp 0x4153eb
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.00414cd0
test al, al
je 0x4151fc
mov edi, dword [esi + 0xb180]
sub edi, 0xd
push edi
mov dword [0x4917d8], edi
call fcn.00444707
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [0x4917e4], eax
je 0x4153e7
push ebx
push ebp
push edi
push eax
mov ecx, esi
call fcn.00414cd0
test al, al
je 0x4153e7
mov cl, byte [0x491808]
cmp cl, 0x2d
mov byte [0x491804], cl
mov dword [0x4917f8], ebp
jb 0x4152a3
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 [0x4917f8], eax
add cl, 0xd3
sub eax, 1
jne 0x415295
mov byte [0x491804], cl
cmp cl, 9
mov dword [0x4917fc], ebp
jb 0x4152d0
movzx edx, cl
mov eax, 0x38e38e39
mul edx
shr edx, 1
movzx eax, dl
mov dword [0x4917fc], eax
add cl, 0xf7
sub eax, 1
jne 0x4152c2
mov byte [0x491804], cl
mov eax, dword [0x4917fc]
movzx edi, cl
lea ecx, [edi + eax]
mov ebp, 0x300
shl ebp, cl
mov ecx, dword [esi + 0x838]
push ecx
mov dword [0x491800], edi
lea ebp, [ebp + ebp + 0xe6c]
mov dword [0x4917d0], ebp
call fcn.00444707
mov ebx, eax
push ebp
mov dword [0x4917e0], ebx
call fcn.00444707
add esp, 8
test ebx, ebx
mov dword [0x4917dc], eax
je 0x4153e7
test eax, eax
je 0x4153e7
mov ecx, dword [0x4917e4]
mov edx, dword [0x4917d8]
push 0x4917d4
mov dword [0x4917ec], ecx
mov dword [0x4917f0], edx
mov dword [0x4917e8], 0x414520
mov eax, dword [esi + 0x838]
push eax
mov eax, dword [0x4917dc]
push ebx
push edx
mov edx, dword [0x4917fc]
push ecx
mov ecx, dword [0x4917f8]
push ecx
push edx
push edi
push ebp
push eax
call fcn.0041b650
add esp, 0x28
test eax, eax
mov dword [0x4917f4], eax
jne 0x4153e7
mov ecx, dword [esi + 0x83c]
mov edx, dword [esi + 0x838]
mov eax, dword [0x4917e0]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00414570
mov ecx, dword [esp + 0x3c]
call fcn.00413fc0
mov ecx, dword [0x4917dc]
push ecx
call fcn.0044462a
mov edx, dword [0x4917e0]
push edx
call fcn.0044462a
mov eax, dword [0x4917e4]
push eax
call fcn.0044462a
add esp, 0xc
cmp byte [0x486047], 0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
jne 0x4153fc
call fcn.0041f1d0
mov al, 1
jmp 0x415403
mov ecx, dword [esp + 0x3c]
call fcn.00413fc0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0041f1d0
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x24