Function at 0x5120a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdf11
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2d0], esi
mov eax, dword [esi + 0x250]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 0xe0
mov word [ebp - 0x88], cx
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
call fcn.00408f10
lea ebx, [esi + 0x258]
mov dword [ebp - 4], 0
push ecx
mov ecx, ebx
call fcn.00536fb0
add esi, 0x60
mov dword [ebp - 0x2e8], esi
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push eax
call fcn.00537040
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x18], 0
push eax
call fcn.00408f10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x512186
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x512186
push 1
push 0x5f8f64
lea ecx, [ebp - 0x28]
call fcn.0040c5a0
cmp byte [ebp - 0x2c0], 0
mov dword [ebp - 0x2ec], 0xf
mov dword [ebp - 0x2f0], 0
mov byte [ebp - 0x300], 0
jne 0x5121ae
xor ecx, ecx
jmp 0x5121c0
lea ecx, [ebp - 0x2c0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5121b7
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x300]
call fcn.00408bb0
push ecx
lea edx, [ebp - 0x300]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.0051cf70
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2ec]
cmp eax, 0x10
jb 0x51220b
inc eax
lea ecx, [ebp - 0x300]
push eax
push dword [ebp - 0x300]
call fcn.00408df0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x2ec], 0xf
push eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x2f0], 0
push eax
mov ecx, esi
mov byte [ebp - 0x300], 0
call fcn.00513ab0
mov ecx, dword [ebp - 0x320]
mov al, byte [ebp - 0x8c]
mov dword [ebp - 0x304], 0xf
mov dword [ebp - 0x308], 0
mov byte [ecx + 0x28], al
cmp byte [ebp - 0x2c0], 0
mov byte [ebp - 0x318], 0
jne 0x51226f
xor ecx, ecx
jmp 0x512281
lea ecx, [ebp - 0x2c0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x512278
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x318]
call fcn.00408bb0
push ecx
lea edx, [ebp - 0x318]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.0051cf70
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x304]
cmp eax, 0x10
jb 0x5122cc
inc eax
lea ecx, [ebp - 0x318]
push eax
push dword [ebp - 0x318]
call fcn.00408df0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x304], 0xf
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x308], 0
mov byte [ebp - 0x318], 0
call fcn.0040aa30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x94]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005aae36
mov edi, eax
push 0x5c
push edi
call fcn.0059050a
add esp, 0xc
test eax, eax
je 0x51232c
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.005371d0
push edi
call fcn.00599281
add esp, 4
cmp byte [ebp - 0x8c], 0
je 0x512367
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
test esi, esi
je 0x5125a7
cmp esi, 0xffffffff
je 0x5125a7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x5125a7
mov eax, dword [ebx + 8]
test eax, eax
je 0x512386
cmp dword [eax + 0x38], 0
je 0x512386
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2e4], eax
mov esi, dword [ebp - 0x90]
sub esp, 8
mov edi, dword [ebp - 0x2d0]
mov eax, esi
shr eax, 0x1f
movd xmm0, esi
movd xmm1, dword [edi + 0x10]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [eax*8 + 0x624aa0]
divsd xmm0, xmm1
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.005be660
movd xmm1, dword [edi + 0x10]
add esi, 0x1e
fstp qword [ebp - 0x30]
cvttsd2si eax, qword [ebp - 0x30]
cvtdq2pd xmm1, xmm1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa0]
add eax, esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x624aa0]
divsd xmm0, xmm1
movsd qword [ebp - 0x2c8], xmm0
fld qword [ebp - 0x2c8]
fstp qword [esp]
call fcn.005be660
fstp qword [ebp - 0x2c8]
cvttsd2si esi, qword [ebp - 0x2c8]
push 0x10
call fcn.00599286
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
mov dword [ebp - 0x2c4], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2e4]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov byte [eax + 0xc], 0
mov eax, dword [edi + 0x58]
mov edx, eax
mov esi, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x512474
nop dword [eax]
cmp dword [ecx + 0x10], esi
jge 0x51246a
mov ecx, dword [ecx + 8]
jmp 0x51246e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x512460
cmp edx, eax
je 0x51247d
cmp esi, dword [edx + 0x10]
jge 0x51247f
mov edx, eax
cmp edx, eax
je 0x5124c3
mov ecx, eax
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x5124a4
nop
cmp dword [edx + 0x10], esi
jge 0x51249a
mov edx, dword [edx + 8]
jmp 0x51249e
mov eax, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x512490
cmp eax, ecx
je 0x5124ad
cmp esi, dword [eax + 0x10]
jge 0x5124af
mov eax, ecx
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [eax + 0x18]
call fcn.00512be0
jmp 0x5125a7
lea eax, [ebp - 0x2dc]
mov byte [ebp - 0x2c9], 0
push eax
lea edx, [ebp - 0x2c9]
mov dword [ebp - 0x2dc], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
call fcn.005139d0
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2dc]
test ecx, ecx
je 0x51253e
mov eax, dword [ebp - 0x2d4]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0040d620
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
lea eax, [ebp - 0x2c4]
mov byte [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00512be0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x328]
push eax
lea ecx, [edi + 0x58]
call fcn.00513a20
mov ecx, dword [ebp - 0x328]
mov al, byte [ebp - 0x40]
mov byte [ecx + 0x14], al
lea eax, [ebp - 0x3c]
push eax
add ecx, 0x18
call fcn.00512d60
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x5125a7
mov eax, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.0040d620
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x5125bc
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 7
cmp eax, 8
jb 0x5125e5
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409510
xor eax, eax
mov byte [ebp - 4], al
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
cmp eax, 8
jb 0x512611
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
push ecx
mov ecx, ebx
call fcn.00537010
mov esi, dword [ebp - 0x2e8]
test al, al
jne 0x512125
mov esi, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x74]
mov byte [esi + 0xa], 1
cmp eax, 8
jb 0x51264c
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005765b2
mov esp, ebp
pop ebp
ret