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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae8d
mov eax, dword fs:[0]
push eax
mov eax, 0x20b4
call fcn.0045fc90
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.0040b1d0
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 0x42f8a3
lea edx, [ebp - 0x2070]
mov eax, dword [ebp - 0x2060]
lea eax, [edx + eax*2]
cmp edi, 8
jae 0x42f8b7
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.00431a20
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 0x42f923
xor ecx, ecx
jmp 0x42f93f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x42f930
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f930
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2040]
call fcn.0040a110
lea eax, [ebp - 0x2058]
push eax
lea eax, [ebp - 0x2040]
push eax
lea ecx, [ebp - 0x20b0]
mov byte [ebp - 4], 3
call fcn.0042db20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x202c], 8
mov bl, al
jb 0x42f986
push dword [ebp - 0x2040]
call fcn.0044d639
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
jne 0x42f99b
mov esi, 1
jmp 0x42fbf4
mov edi, dword [ebp - 0x20ac]
lea ebx, [edi + 1]
push ebx
call fcn.0044bdc0
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.00431400
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x20bc]
mov byte [esi + ebx - 1], 0
cmp ebx, edi
jb 0x42fbbb
test esi, esi
je 0x42fbbb
push edi
push dword [ebp - 0x20b0]
push esi
call fcn.004505b0
add esp, 0xc
lea ecx, [ebp - 0x2028]
call fcn.0042e430
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2014], 8
mov eax, dword [ebp - 0x2028]
jae 0x42fa1f
lea eax, [ebp - 0x2028]
push 0x47ed0c
push eax
call fcn.0044fac9
mov edi, eax
add esp, 8
test edi, edi
jne 0x42fa3b
lea esi, [eax + 0x52]
jmp 0x42fb85
push edi
push ebx
push 1
push esi
call fcn.0044da24
push edi
call fcn.0044dbad
mov eax, dword [ebp - 0x2028]
add esp, 0x14
cmp dword [ebp - 0x2014], 8
jae 0x42fa63
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.00450d40
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 0x42fae5
lea eax, [ebp - 0x2028]
mov edi, dword [ebp + esi*4 - 0x2038]
push eax
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x47abfc
push edi
push str.setup
call ebx
test eax, eax
je 0x42fb79
push edi
lea ecx, [ebp - 0x2088]
call fcn.0040a210
lea eax, [ebp - 0x2088]
push eax
mov byte [ebp - 4], 6
call fcn.0042a2d0
cmp word [ebp - 0x2010], 0
mov edx, eax
jne 0x42fb36
xor ecx, ecx
jmp 0x42fb4f
lea ecx, [ebp - 0x2010]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fb40
sub ecx, edi
sar ecx, 1
push ecx
lea eax, [ebp - 0x2010]
push eax
mov ecx, edx
call fcn.0040a110
mov byte [ebp - 4], 5
cmp dword [ebp - 0x2074], 8
jb 0x42fb79
push dword [ebp - 0x2088]
call fcn.0044d639
add esp, 4
inc esi
cmp esi, 4
jl 0x42fad0
xor esi, esi
cmp dword [ebp - 0x2014], 8
jb 0x42fb9c
push dword [ebp - 0x2028]
call fcn.0044d639
add esp, 4
xor eax, eax
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], 0
mov word [ebp - 0x2028], ax
jmp 0x42fbc0
mov esi, 1
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x20b8]
test edi, edi
je 0x42fbf4
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x42fbf4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x42fbf4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x20b0]
test eax, eax
je 0x42fc07
push eax
call fcn.0044d60a
add esp, 4
cmp dword [ebp - 0x2044], 0x10
jb 0x42fc1e
push dword [ebp - 0x2058]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x205c], 8
mov dword [ebp - 0x2044], 0xf
mov dword [ebp - 0x2048], 0
mov byte [ebp - 0x2058], 0
jb 0x42fc50
push dword [ebp - 0x2070]
call fcn.0044d639
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.0044c32d
mov esp, ebp
pop ebp
ret