Function at 0x44c650
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53006b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x577760]
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 eax, dword [ebp + 0xc]
mov dx, word [0x560238]
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x206
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x258], 0xffffffff
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
mov word [ebp - 0x218], dx
call fcn.004c5420
mov eax, dword [0x58e72c]
mov dword [ebp - 0x274], 0x401040
mov dword [ebp - 0x270], 0x401060
mov ecx, dword [eax + ebx*4]
mov eax, dword [eax + ebx*4 + 4]
sub eax, ecx
add esp, 0xc
cmp eax, esi
jle 0x44c9ff
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bf80b
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [0x58e72c]
mov edx, dword [ecx + ebx*4]
mov ecx, dword [ecx + ebx*4 + 4]
add esp, 4
sub ecx, edx
test eax, eax
je 0x44c74d
mov esi, dword [0x58e730]
lea esi, [esi + edx*2]
test ecx, ecx
je 0x44c74d
mov edx, eax
sub esi, eax
nop
mov di, word [esi + edx]
mov word [edx], di
add edx, 2
dec ecx
jne 0x44c740
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x44c752
sub ecx, esi
sar ecx, 1
je 0x44c8b6
xor edx, edx
cmp word [eax], dx
je 0x44c789
mov ecx, eax
cmp word [ecx], 0x2f
jne 0x44c77e
mov esi, 0x5c
mov word [ecx], si
inc edx
cmp word [eax + edx*2], 0
lea ecx, [eax + edx*2]
jne 0x44c770
mov esi, dword [0x58e700]
mov ecx, ebx
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, ebx
sar ecx, 3
mov cl, byte [ecx + esi]
test cl, dl
mov ecx, 0
setne cl
xor edi, edi
mov dword [ebp - 0x260], ecx
cmp ecx, edi
je 0x44c8f7
mov edx, dword [ebp - 0x25c]
push eax
push edx
push 0x560f3c
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.004c21b0
add esp, 0x14
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44c800
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00422da0
mov ecx, esi
lea esi, [ebp - 0x250]
mov dword [ebp - 4], edi
call fcn.00460bf0
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x44c83d
mov eax, dword [eax]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp dword [ebp - 0x23c], esi
jb 0x44c85b
mov edx, dword [ebp - 0x250]
push edx
call fcn.004bf135
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], edi
mov byte [ebp - 0x250], 0
jb 0x44c891
mov eax, dword [ebp - 0x234]
push eax
call fcn.004bf135
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x260], edi
ja 0x44c9ff
lea eax, [ebp - 0x274]
push eax
push 0x58e6b0
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x258]
push ecx
push ebx
mov eax, 0x58e6b8
call fcn.00403b10
add esp, 0x1c
test eax, eax
je 0x44c94a
xor al, al
jmp 0x44ca0b
mov ecx, dword [ebp - 0x26c]
cmp ecx, edi
je 0x44c924
mov edx, dword [ebp - 0x25c]
push ecx
push edx
push 0x560f48
lea eax, [ebp - 0x218]
push 0x103
push eax
call fcn.004c21b0
add esp, 0x14
jmp 0x44c8b6
mov ecx, dword [ebp - 0x25c]
push eax
push ecx
push 0x560f48
lea edx, [ebp - 0x218]
push 0x103
push edx
call fcn.004c21b0
add esp, 0x14
jmp 0x44c8b6
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x258], esi
cmp esi, 0xffffffff
jne 0x44c984
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x44c984
call edi
mov edx, dword [0x59275c]
mov eax, dword [ebp - 0x264]
add edx, dword [ebp - 0x268]
mov dword [ebp - 0x254], eax
push edx
lea eax, [ebp - 0x258]
push eax
lea edi, [ebp - 0x254]
call fcn.00405110
add esp, 8
cmp esi, 0xffffffff
je 0x44c9c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x44c9c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x58e70c]
test esi, esi
je 0x44c9ff
mov ecx, ebx
and ecx, 7
mov edx, 0x80
sar edx, cl
mov eax, ebx
sar eax, 3
test byte [eax + esi], dl
je 0x44c9ff
mov edx, dword [0x58e710]
mov eax, dword [edx + ebx*4]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x58e6b4], 0x401020
mov al, 1
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.004be8b8
mov esp, ebp
pop ebp
ret 8