Function at 0x4f3770
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb70
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0xb6c], eax
push esi
push edi
sub esp, 0xc
mov eax, ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
mov edi, edx
push 0
push 0
push 0
push ecx
push 0
push 0
mov ecx, eax
call fcn.004f4220
add esp, 0x24
test eax, eax
jne 0x4f3a60
mov eax, dword [esp + 0x28]
mov edx, 0x104
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x75c]
mov dword [esp + 0x28], eax
call fcn.0050a4d0
add esp, 4
test al, al
je 0x4f3a5d
push str.License_
mov edx, 0x104
lea ecx, [esp + 0x75c]
call fcn.0052fae0
lea ecx, [esp + 0x75c]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3823
mov esi, dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [esp + 0x758]
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x4f385c
push eax
lea eax, [esp + 0x554]
push 0x104
push eax
call esi
add esp, 0xc
jmp 0x4f3882
push 0x103
push eax
lea eax, [esp + 0x558]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + 0x756], ax
push str..lic
mov edx, 0x104
lea ecx, [esp + 0x554]
call fcn.0052fae0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x964]
add esp, 4
push 0x105
push eax
push 0
push ecx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
lea ecx, [esp + 0x570]
call fcn.004f48a0
add esp, 0x20
test eax, eax
jne 0x4f3927
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x2c]
jne 0x4f3906
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x30]
jne 0x4f3906
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x34]
jne 0x4f3906
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0xb6c]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [esp + 0x964]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x960]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x758]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3931
sub ecx, edx
lea eax, [esp + 0x758]
sar ecx, 1
cmp ecx, 0x104
jae 0x4f3964
push eax
lea eax, [esp + 0x554]
push 0x104
push eax
call esi
add esp, 0xc
jmp 0x4f398a
push 0x103
push eax
lea eax, [esp + 0x558]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esp + 0x756], ax
push str.NOD_04X.lic
mov edx, 0x104
lea ecx, [esp + 0x554]
call fcn.0052fae0
push 0x104
lea edx, [esp + 0x760]
lea ecx, [esp + 0x558]
call fcn.0050a2b0
add esp, 8
test eax, eax
jne 0x4f39d8
mov eax, 0xfffffffa
pop edi
pop esi
mov ecx, dword [esp + 0xb6c]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [esp + 0x770]
push eax
call dword [0x5c008c]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f39bf
push 0
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f3a3b
cmp dword [esp + 0x14], edi
jne 0x4f3a3b
push esi
xor edi, edi
call dword [0x5c001c]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xb6c]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
push esi
mov edi, 0xfffffffa
call dword [0x5c001c]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xb6c]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, dword [esp + 0xb74]
pop edi
pop esi
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret