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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45081b
mov eax, dword fs:[0]
push eax
mov eax, 0x19014
call fcn.0043fbd0
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebx + 0x23f], 0
jne 0x41e992
mov dword [ebp - 0x19018], 0xffffffff
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea edi, [ebx + 0x24]
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x19018], esi
cmp esi, 0xffffffff
jne 0x41e84a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41e7d8
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 - 0x19018], esi
cmp esi, 0xffffffff
jne 0x41e84a
mov dword [ebp - 0x19014], 0
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
mov dword [ebp - 0x19018], esi
cmp esi, 0xffffffff
jne 0x41e822
mov eax, dword [ebp - 0x19014]
inc eax
mov dword [ebp - 0x19014], eax
cmp eax, 3
jb 0x41e7e2
cmp dword [ebp - 0x19014], 3
jne 0x41e845
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x41e83e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41ea15
cmp esi, 0xffffffff
je 0x41e857
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x18fff
lea eax, [ebp - 0x1900f]
push 0
push eax
mov byte [ebp - 0x19010], 0
call fcn.0043f7e0
mov eax, dword [ebx + 0x240]
mov edi, dword [ebx + 0x244]
sub edi, eax
xor ecx, ecx
xor edx, edx
sar edi, 2
add esp, 0xc
mov dword [ebp - 0x19014], ecx
mov dword [ebp - 0x19020], edx
test edi, edi
je 0x41e958
lea ecx, [ecx]
mov edi, dword [eax + edx*4]
mov edx, dword [edi]
add edx, ecx
cmp edx, 0x19000
jbe 0x41e8e6
mov dword [ebp - 0x19014], 0
cmp esi, 0xffffffff
je 0x41e8d6
push 0
lea eax, [ebp - 0x19014]
push eax
push ecx
lea ecx, [ebp - 0x19010]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x19014], 0
mov ecx, dword [ebp - 0x19014]
mov eax, dword [edi]
cmp eax, 0x19000
jbe 0x41e912
mov dword [ebp - 0x1901c], 0
cmp esi, 0xffffffff
je 0x41e932
push 0
lea edx, [ebp - 0x1901c]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41e92c
push eax
lea eax, [ebp + ecx - 0x19010]
push edi
push eax
call fcn.0043f860
mov ecx, dword [edi]
add esp, 0xc
add dword [ebp - 0x19014], ecx
mov ecx, dword [ebp - 0x19014]
mov eax, dword [ebx + 0x240]
mov edi, dword [ebx + 0x244]
mov edx, dword [ebp - 0x19020]
sub edi, eax
inc edx
sar edi, 2
mov dword [ebp - 0x19020], edx
cmp edx, edi
jb 0x41e8a0
mov dword [ebp - 0x1901c], 0
cmp esi, 0xffffffff
je 0x41e97f
push 0
lea edx, [ebp - 0x1901c]
push edx
push ecx
lea eax, [ebp - 0x19010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x41e992
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x244]
sub ecx, eax
sar ecx, 2
xor esi, esi
test ecx, ecx
je 0x41e9df
lea esp, [esp]
mov edx, dword [eax + esi*4]
push edx
call fcn.0043bd74
mov eax, dword [ebx + 0x240]
mov dword [eax + esi*4], 0
mov eax, dword [ebx + 0x240]
mov ecx, dword [ebx + 0x244]
sub ecx, eax
inc esi
sar ecx, 2
add esp, 4
cmp esi, ecx
jb 0x41e9b0
mov ecx, dword [ebx + 0x244]
mov esi, dword [ebx + 0x240]
cmp esi, ecx
je 0x41ea10
mov eax, ecx
sub eax, ecx
sar eax, 2
lea edi, [eax*4]
push edi
push ecx
push esi
call fcn.0043b790
add esp, 0xc
add edi, esi
mov dword [ebx + 0x244], edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret