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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45348b
mov eax, dword fs:[0]
push eax
mov eax, 0x19014
call fcn.00442810
mov eax, dword [0x468100]
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 0x421302
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 0x4211ba
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x421148
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 0x4211ba
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 0x421192
mov eax, dword [ebp - 0x19014]
inc eax
mov dword [ebp - 0x19014], eax
cmp eax, 3
jb 0x421152
cmp dword [ebp - 0x19014], 3
jne 0x4211b5
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x4211ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x421385
cmp esi, 0xffffffff
je 0x4211c7
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.00442420
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 0x4212c8
lea ecx, [ecx]
mov edi, dword [eax + edx*4]
mov edx, dword [edi]
add edx, ecx
cmp edx, 0x19000
jbe 0x421256
mov dword [ebp - 0x19014], 0
cmp esi, 0xffffffff
je 0x421246
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 0x421282
mov dword [ebp - 0x1901c], 0
cmp esi, 0xffffffff
je 0x4212a2
push 0
lea edx, [ebp - 0x1901c]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42129c
push eax
lea eax, [ebp + ecx - 0x19010]
push edi
push eax
call fcn.004424a0
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 0x421210
mov dword [ebp - 0x1901c], 0
cmp esi, 0xffffffff
je 0x4212ef
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 0x421302
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 0x42134f
lea esp, [esp]
mov edx, dword [eax + esi*4]
push edx
call fcn.0043e904
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 0x421320
mov ecx, dword [ebx + 0x244]
mov esi, dword [ebx + 0x240]
cmp esi, ecx
je 0x421380
mov eax, ecx
sub eax, ecx
sar eax, 2
lea edi, [eax*4]
push edi
push ecx
push esi
call fcn.0043e320
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.0043e1c4
mov esp, ebp
pop ebp
ret