Function at 0x42f800
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae4d
mov eax, dword fs:[0]
push eax
mov eax, 0x20b4
call fcn.0045fc50
mov eax, dword [0x4a5590]
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 esi, ecx
push ecx
lea ecx, [ebp - 0x2070]
call fcn.0040b1a0
add esp, 4
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x205c]
mov ecx, dword [ebp - 0x2070]
mov edx, ecx
cmp edi, 8
jae 0x42f863
lea edx, [ebp - 0x2070]
mov eax, dword [ebp - 0x2060]
lea eax, [edx + eax*2]
cmp edi, 8
jae 0x42f877
lea ecx, [ebp - 0x2070]
push dword [ebp - 0x20b4]
mov dword [ebp - 0x2044], 0xf
push eax
push ecx
lea ecx, [ebp - 0x2058]
mov dword [ebp - 0x2048], 0
mov byte [ebp - 0x2058], 0
call fcn.004319e0
mov dword [ebp - 0x20b0], 0
mov dword [ebp - 0x20ac], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x202c], 7
mov dword [ebp - 0x2030], 0
mov word [ebp - 0x2040], ax
cmp word [esi], ax
jne 0x42f8e3
xor ecx, ecx
jmp 0x42f8ff
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x42f8f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f8f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2040]
call fcn.0040a100
lea eax, [ebp - 0x2058]
push eax
lea eax, [ebp - 0x2040]
push eax
lea ecx, [ebp - 0x20b0]
mov byte [ebp - 4], 3
call fcn.0042dae0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x202c], 8
mov bl, al
jb 0x42f946
push dword [ebp - 0x2040]
call fcn.0044d5f9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
jne 0x42f95b
mov esi, 1
jmp 0x42fbb4
mov edi, dword [ebp - 0x20ac]
lea ebx, [edi + 1]
push ebx
call fcn.0044bd80
add esp, 4
mov byte [ebp - 0x20b4], 0
push dword [ebp - 0x20b4]
lea ecx, [ebp - 0x20b8]
push eax
mov dword [ebp - 0x20bc], eax
call fcn.004313c0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x20bc]
mov byte [esi + ebx - 1], 0
cmp ebx, edi
jb 0x42fb7b
test esi, esi
je 0x42fb7b
push edi
push dword [ebp - 0x20b0]
push esi
call fcn.00450570
add esp, 0xc
lea ecx, [ebp - 0x2028]
call fcn.0042e3f0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2014], 8
mov eax, dword [ebp - 0x2028]
jae 0x42f9df
lea eax, [ebp - 0x2028]
push 0x47ece4
push eax
call fcn.0044fa89
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f9fb
lea esi, [eax + 0x52]
jmp 0x42fb45
push edi
push ebx
push 1
push esi
call fcn.0044d9e4
push edi
call fcn.0044db6d
mov eax, dword [ebp - 0x2028]
add esp, 0x14
cmp dword [ebp - 0x2014], 8
jae 0x42fa23
lea eax, [ebp - 0x2028]
push 0
push 0x4000000
push 3
push 0
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
call fcn.00450d00
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
mov dword [ebp - 0x2038], str.AFFILIATEID
mov dword [ebp - 0x2034], str.AFFILIATEIDFLAGS
mov dword [ebp - 0x2030], str.FREEREMINDPERIOD
mov dword [ebp - 0x202c], str.LICENSEKEY
xor esi, esi
lea ebx, [ebx]
cmp dword [ebp - 0x2014], 8
mov eax, dword [ebp - 0x2028]
jae 0x42faa5
lea eax, [ebp - 0x2028]
mov edi, dword [ebp + esi*4 - 0x2038]
push eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x47ac50
push edi
push str.setup
call ebx
test eax, eax
je 0x42fb39
push edi
lea ecx, [ebp - 0x2088]
call fcn.0040a200
lea eax, [ebp - 0x2088]
push eax
mov byte [ebp - 4], 6
call fcn.0042a290
cmp word [ebp - 0x2010], 0
mov edx, eax
jne 0x42faf6
xor ecx, ecx
jmp 0x42fb0f
lea ecx, [ebp - 0x2010]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fb00
sub ecx, edi
sar ecx, 1
push ecx
lea eax, [ebp - 0x2010]
push eax
mov ecx, edx
call fcn.0040a100
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2074], 8
jb 0x42fb39
push dword [ebp - 0x2088]
call fcn.0044d5f9
add esp, 4
inc esi
cmp esi, 4
jl 0x42fa90
xor esi, esi
cmp dword [ebp - 0x2014], 8
jb 0x42fb5c
push dword [ebp - 0x2028]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2028], ax
jmp 0x42fb80
mov esi, 1
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x20b8]
test edi, edi
je 0x42fbb4
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x42fbb4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x42fbb4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x20b0]
test eax, eax
je 0x42fbc7
push eax
call fcn.0044d5ca
add esp, 4
cmp dword [ebp - 0x2044], 0x10
jb 0x42fbde
push dword [ebp - 0x2058]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x205c], 8
mov dword [ebp - 0x2044], 0xf
mov dword [ebp - 0x2048], 0
mov byte [ebp - 0x2058], 0
jb 0x42fc10
push dword [ebp - 0x2070]
call fcn.0044d5f9
add esp, 4
mov eax, esi
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.0044c2ed
mov esp, ebp
pop ebp
ret