Function at 0x4cfb80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529461
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x7c], 0xffffffff
je 0x4cfbbb
mov al, 1
jmp 0x4cfdac
mov ecx, dword [ebp - 0x58]
add ecx, 0x34
call fcn.004101a0
sub eax, 1
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x34
call fcn.004213a0
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x4cfbe4
xor al, al
jmp 0x4cfdac
mov edx, dword [ebp - 0x58]
add edx, 0x34
push edx
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004526c0
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
add eax, 0x60
push eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00425f10
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402c30
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea eax, [ebp - 0x48]
push eax
call fcn.00402b30
mov dword [ebp - 0x64], eax
call fcn.0051f060
add esp, 0x1c
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
jne 0x4cfcc2
mov ecx, dword [ebp - 0x58]
call fcn.0040acf0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4cfc9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4cfc9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005134d0
add esp, 4
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov al, byte [ebp - 0x4d]
jmp 0x4cfdac
cmp dword [ebp + 8], 0
jne 0x4cfcc0
mov byte [ebp - 0x4e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov al, byte [ebp - 0x4e]
jmp 0x4cfdac
jmp 0x4cfd0a
cmp dword [ebp + 8], 1
jne 0x4cfd0a
push 0x80
lea ecx, [ebp - 0x48]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4cfd0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00513470
add esp, 4
mov byte [ebp - 0x4f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov al, byte [ebp - 0x4f]
jmp 0x4cfdac
cmp dword [ebp + 8], 0
jne 0x4cfd39
push 0
push 0x80
push 4
push 0
push 3
push bind
lea ecx, [ebp - 0x48]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x7c], eax
jmp 0x4cfd66
cmp dword [ebp + 8], 1
jne 0x4cfd66
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x48]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x58]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x7c], 0xffffffff
jne 0x4cfd96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005135f0
add esp, 4
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov al, byte [ebp - 0x50]
jmp 0x4cfdac
mov byte [ebp - 0x51], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret 4