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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19014
call fcn.00476590
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x19010], edi
cmp byte [edi + 0x23f], 0
jne 0x431f18
push 0
push 0x80
push 4
push 0
push 1
lea ebx, [edi + 0x24]
push 0x40000000
push ebx
mov dword [ebp - 0x1900c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431ddf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x431d72
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431ddf
mov edi, dword [ebp - 0x1900c]
xor ebx, ebx
nop word [eax + eax]
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431dae
inc ebx
cmp ebx, 3
jb 0x431d80
mov edi, dword [ebp - 0x19010]
cmp ebx, 3
jne 0x431dda
cmp esi, 0xffffffff
je 0x431dc5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 4
cmp esi, 0xffffffff
je 0x431dec
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
lea eax, [ebp - 0x19004]
push 0
push eax
call fcn.00451eb0
mov eax, dword [edi + 0x244]
xor ecx, ecx
sub eax, dword [edi + 0x240]
add esp, 0xc
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
sar eax, 2
mov dword [ebp - 0x1900c], ecx
test eax, eax
je 0x431eee
nop dword [eax]
mov eax, dword [edi + 0x240]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x19014], ecx
mov eax, dword [ecx]
add eax, ebx
cmp eax, 0x19000
jbe 0x431e7b
mov dword [ebp - 0x19008], 0
cmp esi, 0xffffffff
je 0x431e79
push 0
lea eax, [ebp - 0x19008]
push eax
push ebx
lea eax, [ebp - 0x19004]
push eax
push esi
call edx
mov ecx, dword [ebp - 0x19014]
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
mov eax, dword [ecx]
cmp eax, 0x19000
jbe 0x431ea9
mov dword [ebp - 0x19008], 0
cmp esi, 0xffffffff
je 0x431ec4
push 0
lea edi, [ebp - 0x19008]
push edi
push eax
push ecx
push esi
call edx
mov edi, dword [ebp - 0x19010]
jmp 0x431ec4
push eax
lea eax, [ebp - 0x19004]
push ecx
add eax, ebx
push eax
call fcn.00452490
mov eax, dword [ebp - 0x19014]
add esp, 0xc
add ebx, dword [eax]
mov eax, dword [edi + 0x244]
mov ecx, dword [ebp - 0x1900c]
sub eax, dword [edi + 0x240]
inc ecx
mov edx, dword [sym.imp.KERNEL32.dll_WriteFile]
sar eax, 2
mov dword [ebp - 0x1900c], ecx
cmp ecx, eax
jb 0x431e30
mov dword [ebp - 0x19008], 0
cmp esi, 0xffffffff
je 0x431f18
push 0
lea eax, [ebp - 0x19008]
push eax
push ebx
lea eax, [ebp - 0x19004]
push eax
push esi
call edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x244]
xor esi, esi
sub eax, dword [edi + 0x240]
sar eax, 2
test eax, eax
je 0x431f62
nop dword [eax]
mov eax, dword [edi + 0x240]
push dword [eax + esi*4]
call fcn.00458d05
mov eax, dword [edi + 0x240]
add esp, 4
mov dword [eax + esi*4], 0
inc esi
mov eax, dword [edi + 0x244]
sub eax, dword [edi + 0x240]
sar eax, 2
cmp esi, eax
jb 0x431f30
mov eax, dword [edi + 0x240]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x244], eax
xor ecx, ebp
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0044df7a
mov esp, ebp
pop ebp
ret 4