Function at 0x423250
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a86b
mov eax, dword fs:[0]
push eax
mov eax, 0x19014
call fcn.0043e420
mov eax, dword [0x471080]
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 ebx, ecx
mov dword [ebp - 0x19018], ebx
cmp byte [ebx + 0x23f], 0
jne 0x4234b7
mov dword [ebp - 0x19020], 0xffffffff
push 0
push 0x80
push 4
push 0
push 1
lea edi, [ebx + 0x24]
mov dword [ebp - 4], 0
push 0x40000000
push edi
mov dword [ebp - 0x1901c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19020], esi
cmp esi, 0xffffffff
jne 0x42337e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x423317
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19020], esi
cmp esi, 0xffffffff
jne 0x42337e
mov ebx, dword [ebp - 0x1901c]
xor edi, edi
nop
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19020], esi
cmp esi, 0xffffffff
jne 0x423354
inc edi
cmp edi, 3
jb 0x423320
mov ebx, dword [ebp - 0x19018]
cmp edi, 3
jne 0x423379
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x423372
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x423509
cmp esi, 0xffffffff
je 0x42338b
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
lea eax, [ebp - 0x19010]
push 0
push eax
call fcn.0043fa60
mov eax, dword [ebx + 0x244]
xor edx, edx
mov ecx, dword [ebx + 0x240]
add esp, 0xc
sub eax, ecx
mov dword [ebp - 0x1901c], edx
sar eax, 2
xor edi, edi
test eax, eax
je 0x423476
mov edx, dword [ecx + edx*4]
mov dword [ebp - 0x19018], edx
mov ecx, dword [edx]
lea eax, [ecx + edi]
cmp eax, 0x19000
jbe 0x42340a
mov dword [ebp - 0x19014], 0
cmp esi, 0xffffffff
je 0x423408
push 0
lea eax, [ebp - 0x19014]
push eax
push edi
lea eax, [ebp - 0x19010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x19018]
mov ecx, dword [edx]
xor edi, edi
cmp ecx, 0x19000
jbe 0x423435
mov dword [ebp - 0x19014], 0
cmp esi, 0xffffffff
je 0x423450
push 0
lea eax, [ebp - 0x19014]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x423450
push ecx
lea eax, [ebp - 0x19010]
push edx
add eax, edi
push eax
call fcn.0043fbc0
mov eax, dword [ebp - 0x19018]
add esp, 0xc
add edi, dword [eax]
mov eax, dword [ebx + 0x244]
mov edx, dword [ebp - 0x1901c]
mov ecx, dword [ebx + 0x240]
inc edx
sub eax, ecx
mov dword [ebp - 0x1901c], edx
sar eax, 2
cmp edx, eax
jb 0x4233c4
mov dword [ebp - 0x19014], 0
cmp esi, 0xffffffff
je 0x42349d
push 0
lea eax, [ebp - 0x19014]
push eax
push edi
lea eax, [ebp - 0x19010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 2
cmp esi, 0xffffffff
je 0x4234b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebx + 0x244]
xor esi, esi
mov ecx, dword [ebx + 0x240]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4234fe
nop
push dword [ecx + esi*4]
call fcn.0044210c
mov eax, dword [ebx + 0x240]
add esp, 4
mov dword [eax + esi*4], 0
inc esi
mov eax, dword [ebx + 0x244]
mov ecx, dword [ebx + 0x240]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4234d0
mov dword [ebx + 0x244], ecx
mov eax, 1
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.0043dbb2
mov esp, ebp
pop ebp
ret 4