Function at 0x402a20
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b598c
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push str.DataBlack_blacklist.dat
push eax
call fcn.0047b34a
add esp, 8
push 0
push 0x80
push 4
push 0
push 3
mov dword [esp + 0xcc], 0
mov ecx, dword [esp + 0x24]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x402d11
mov edx, dword [0x4e7464]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e7464
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xb8], 1
mov eax, dword [ebx + 0x18]
mov edi, dword [eax]
mov esi, dword [ebx]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov ebp, dword [ebx + 0x18]
mov eax, dword [ebx]
test esi, esi
je 0x402ace
cmp esi, eax
je 0x402ad3
call fcn.00490387
cmp edi, ebp
je 0x402bd0
test esi, esi
jne 0x402bac
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x402af4
call fcn.00490387
cmp dword [edi + 0x20], 0
je 0x402b96
test esi, esi
jne 0x402bb3
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x402b17
call fcn.00490387
test esi, esi
jne 0x402bba
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x402b30
call fcn.00490387
test esi, esi
jne 0x402bc1
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x402b49
call fcn.00490387
test esi, esi
jne 0x402bc8
call fcn.00490387
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x402b5e
call fcn.00490387
test esi, esi
jne 0x402bcc
call fcn.00490387
cmp edi, dword [esi + 0x18]
jne 0x402b71
call fcn.00490387
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [edi + 0xc]
push eax
push ecx
push edx
push str._d_t_s_t_s_t_s_t_d_r_n
lea edi, [esp + 0x40]
call fcn.004054d0
add esp, 0x18
lea esi, [esp + 0x14]
call fcn.004046f0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x402ac1
mov eax, dword [esi]
jmp 0x402aea
mov eax, dword [esi]
jmp 0x402b0d
mov eax, dword [esi]
jmp 0x402b26
mov eax, dword [esi]
jmp 0x402b3f
mov eax, dword [esi]
jmp 0x402b54
mov esi, dword [esi]
jmp 0x402b67
mov esi, dword [esp + 0x28]
cmp dword [esi - 0xc], 0
je 0x402ca9
lea eax, [esp + 0x30]
push 0xfde9
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 0x34]
call fcn.00403be0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004053b0
mov byte [esp + 0xb8], 4
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
cmp eax, edx
je 0x402c28
push eax
call fcn.00490c9e
add esp, 4
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
lea eax, [esp + 0x24]
push eax
call fcn.00404f20
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402cad
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0xb8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x402d3e
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xac
ret