Function at 0x461040
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531a38
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor edx, edx
xor al, al
mov byte [ebp - 0xd], al
mov dword [ebp - 0x1c], edx
cmp ecx, edx
je 0x46127b
cmp word [ecx], dx
je 0x46127b
mov ecx, dword [ebp + 0xc]
cmp ecx, edx
je 0x46127b
cmp word [ecx], dx
je 0x46127b
cmp dword [edi + 0xe54], edx
je 0x46127b
cmp byte [edi + 0x1024], dl
je 0x46121b
cmp byte [edi + 0xe4a], dl
je 0x4610cd
mov esi, dword [edi + 0xe5c]
sub esi, dword [edi + 0x101c]
sub esi, dword [edi + 0x1014]
jmp 0x4610d3
mov esi, dword [edi + 0x1014]
mov ebx, dword [edi + 0x101c]
mov ecx, dword [edi + 0x1018]
mov edx, dword [edi + 0x1020]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
cmp ebx, 0x20
jge 0x461104
mov eax, dword [edi + 0xe5c]
add eax, 0xffffffe0
mov ebx, 0x20
cmp esi, eax
jle 0x461104
mov esi, eax
cmp edx, 0x20
jge 0x461120
mov eax, dword [edi + 0xe60]
add eax, 0xffffffe0
mov dword [ebp - 0x14], 0x20
cmp ecx, eax
jle 0x461120
mov dword [ebp - 0x18], eax
xor edx, edx
push 0x7f02
push edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x46114b
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edx
mov edx, dword [edi + 0xe54]
push ebx
push ecx
push esi
lea eax, [edi + 0x16c]
push edx
call fcn.0043a8d0
xor ebx, ebx
cmp eax, ebx
je 0x461250
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x34]
call fcn.004fc100
mov esi, 0x5388e8
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004fcfb0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
call fcn.004fcfb0
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], vtable.CFileRW.0
mov dword [ebp - 0x38], 0xffffffff
mov eax, esi
cmp esi, ebx
jne 0x4611b7
mov eax, 0x538640
push eax
call fcn.00440f30
mov bl, al
test bl, bl
je 0x4611da
mov eax, esi
test esi, esi
jne 0x4611ce
mov eax, 0x538640
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
test esi, esi
jne 0x4611e5
mov ecx, 0x538640
lea edx, [edi + 0x16c]
call fcn.0043a320
mov byte [ebp - 0xd], al
test al, al
jne 0x4611fb
test bl, bl
je 0x461213
test esi, esi
jne 0x461204
mov esi, 0x538640
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp - 0xd], 0
jne 0x461234
mov ebx, dword [edi + 0x170]
jmp 0x461237
mov eax, dword [edi + 0xe60]
mov ebx, dword [edi + 0xe5c]
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
jmp 0x461122
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.00440c20
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004fc190
jmp 0x461258
mov ecx, dword [edi + 0x170]
mov ebx, ecx
lea esi, [edi + 0x16c]
call fcn.0046c5d0
lea esi, [ebp - 0x28]
call fcn.00435310
test ebx, ebx
je 0x461278
mov ecx, ebx
mov esi, edi
call fcn.004625c0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8