Function at 0x46cf10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0x130]
lea ecx, [esi + 0x130]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov eax, dword [eax + 0x18]
push ebx
call eax
test al, al
je 0x46d1a4
push ecx
push ebx
lea ecx, [esi + 0x130]
call fcn.00470180
test al, al
je 0x46d1a4
mov edx, dword [ebp + 0x10]
lea eax, [esi + 0x130]
mov dword [esi + 0x34c], eax
xor ecx, ecx
mov dword [esi + 8], edx
mov eax, 0x548eb0
nop word [eax + eax]
cmp dword [eax], edx
je 0x46d07e
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x46cf70
cmp dword [ebx], 0
mov esi, ebx
je 0x46cf9d
nop word [eax + eax]
mov esi, dword [esi]
add esi, 0x124
cmp dword [esi], 0
jne 0x46cf90
push 0x128
call fcn.004a35dc
mov ebx, eax
mov ecx, 4
add esp, 4
mov dword [ebp + 0xc], ebx
mov dword [ebx], vtable.t_str.0
mov word [ebx + 0x11a], cx
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], ecx
mov byte [ebx + 0x11c], 1
mov dword [ecx], 0
mov dword [ebp + 0xc], ecx
lea ecx, [ebx + 8]
push 1
mov dword [ebx + 0x120], 0
mov dword [ebx + 4], 0
call fcn.00462700
cmp byte [ebx + 0x11c], 0
mov eax, dword [ebp + 0xc]
jne 0x46d001
mov eax, dword [ebx + 8]
xor ecx, ecx
push 0x55fb48
mov word [eax + 4], cx
push 0x558df8
mov dword [ebx + 0x124], ecx
push ebx
mov dword [esi], ebx
call fcn.004623d0
add esp, 0xc
push dword [ebp + 0x10]
push 0x5563b4
push ebx
call fcn.004623d0
add esp, 0xc
cmp byte [edi + 0x11c], 0
je 0x46d041
add edi, 0xc
jmp 0x46d044
mov edi, dword [edi + 8]
mov ecx, dword [ebp + 8]
call fcn.00464450
push 0x55fb38
mov esi, eax
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x558df8
push esi
call fcn.004623d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
mov dword [ebp - 4], ecx
push ecx
mov ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
call fcn.00462320
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
mov dword [ebp + 0x10], 1
cmp eax, 0xffffffff
jne 0x46d135
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x46d0e8
cmp dword [ebp + 0x10], 3
jge 0x46d17d
cmp byte [esi + 0x350], 0
je 0x46d10a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46d10a
cmp eax, 5
jne 0x46d149
cmp dword [ebp + 0x10], 3
jge 0x46d17d
push 0x80
mov ecx, edi
call fcn.00462320
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 8]
mov ecx, edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00462320
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc dword [ebp + 0x10]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x46d0c0
push edi
lea ecx, [esi + 0xc]
call fcn.00461ea0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x46d17d
cmp byte [edi + 0x11c], al
je 0x46d169
mov ecx, ebx
add edi, 0xc
call fcn.00464450
push 0x55fb18
jmp 0x46d051
mov edi, dword [edi + 8]
mov ecx, ebx
call fcn.00464450
push 0x55fb18
jmp 0x46d051
cmp byte [edi + 0x11c], 0
je 0x46d18b
add edi, 0xc
jmp 0x46d18e
mov edi, dword [edi + 8]
push eax
mov ecx, ebx
call fcn.00464450
mov ecx, eax
call fcn.004645e0
mov ecx, ebx
jmp 0x46d047
mov ecx, ebx
call fcn.00464450
push 0x558e90
push 0x558df8
push eax
call fcn.004623d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc