Function at 0x511e50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd931
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.005367e0
add esi, 0x60
mov dword [ebp - 0x2e8], esi
lea eax, [ebp - 0x2c0]
mov ecx, ebx
push eax
call fcn.00536870
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 0x511f36
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x511f36
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 0x511f5e
xor ecx, ecx
jmp 0x511f70
lea ecx, [ebp - 0x2c0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x511f67
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.0051c990
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2ec]
cmp eax, 0x10
jb 0x511fbb
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.00513860
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 0x51201f
xor ecx, ecx
jmp 0x512031
lea ecx, [ebp - 0x2c0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x512028
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.0051c990
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x304]
cmp eax, 0x10
jb 0x51207c
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.005aa916
mov edi, eax
push 0x5c
push edi
call fcn.0059003a
add esp, 0xc
test eax, eax
je 0x5120dc
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.00536a00
push edi
call fcn.0058f17b
add esp, 4
cmp byte [ebp - 0x8c], 0
je 0x512117
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
test esi, esi
je 0x512357
cmp esi, 0xffffffff
je 0x512357
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x512357
mov eax, dword [ebx + 8]
test eax, eax
je 0x512136
cmp dword [eax + 0x38], 0
je 0x512136
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 + 0x6248d0]
divsd xmm0, xmm1
movsd qword [ebp - 0x30], xmm0
fld qword [ebp - 0x30]
fstp qword [esp]
call fcn.005be110
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 + 0x6248d0]
divsd xmm0, xmm1
movsd qword [ebp - 0x2c8], xmm0
fld qword [ebp - 0x2c8]
fstp qword [esp]
call fcn.005be110
fstp qword [ebp - 0x2c8]
cvttsd2si esi, qword [ebp - 0x2c8]
push 0x10
call fcn.00598db1
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 0x512224
nop dword [eax]
cmp dword [ecx + 0x10], esi
jge 0x51221a
mov ecx, dword [ecx + 8]
jmp 0x51221e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x512210
cmp edx, eax
je 0x51222d
cmp esi, dword [edx + 0x10]
jge 0x51222f
mov edx, eax
cmp edx, eax
je 0x512273
mov ecx, eax
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x512254
nop
cmp dword [edx + 0x10], esi
jge 0x51224a
mov edx, dword [edx + 8]
jmp 0x51224e
mov eax, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x512240
cmp eax, ecx
je 0x51225d
cmp esi, dword [eax + 0x10]
jge 0x51225f
mov eax, ecx
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [eax + 0x18]
call fcn.00512990
jmp 0x512357
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.00513780
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2dc]
test ecx, ecx
je 0x5122ee
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.00512990
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x328]
push eax
lea ecx, [edi + 0x58]
call fcn.005137d0
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.00512b10
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x512357
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 0x51236c
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 0x512395
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 0x5123c1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409510
push ecx
mov ecx, ebx
call fcn.00536840
mov esi, dword [ebp - 0x2e8]
test al, al
jne 0x511ed5
mov esi, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x74]
mov byte [esi + 0xa], 1
cmp eax, 8
jb 0x5123fc
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.0057608a
mov esp, ebp
pop ebp
ret