Function at 0x41d7c0
Capabilities:
Read file on windows
Set file attributes

Disassembly:
mov eax, 0x4000c
call fcn.0042f240
mov eax, dword [0x46b600]
push ebx
push ebp
mov ebp, dword [esp + 0x40018]
push esi
push 0x80
push ebp
mov dword [esp + 0x4001c], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov bl, byte [esp + 0x40020]
mov al, bl
neg al
mov dl, bl
push 0
sbb eax, eax
and eax, 0xf8000000
xor ecx, ecx
add eax, 0x10000080
test bl, bl
setne cl
neg dl
push eax
push 4
push 0
lea ecx, [ecx + ecx + 1]
sbb edx, edx
and edx, 0xc0000000
push ecx
add edx, 0xc0000000
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1040], eax
jne 0x41d857
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x40008]
call fcn.0042f2ae
add esp, 0x4000c
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0xfffffffffffffffc
push eax
call edi
cmp eax, 0xffffffff
mov cl, byte [esp + 0x40028]
mov byte [esi + 0x10730], cl
je 0x41dabe
mov ecx, dword [esi + 0x1040]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x14]
push edx
mov ebx, 4
push ebx
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
cmp eax, 1
jne 0x41daa3
cmp dword [esp + 0x10], ebx
jne 0x41daa3
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x1040]
push 0
push 0
push edx
push eax
call edi
mov eax, dword [esi + 0x1040]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push eax
call ebp
cmp eax, 1
jne 0x41daa3
cmp dword [esp + 0x10], ebx
jne 0x41daa3
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x1040]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call ebp
cmp eax, 1
jne 0x41daa3
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x41daa3
push 0x40
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x1048]
push esi
call fcn.0041cf80
mov cx, word [esi]
mov eax, str.FOX7
cmp cx, word [eax]
jne 0x41daa3
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, 0xfffffc00
jbe 0x41d9f6
lea edi, [esi + 0x40]
jmp 0x41d960
mov ecx, dword [esi + 0x1040]
push 0
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
cmp eax, 1
jne 0x41daa3
cmp dword [esp + 0x10], 4
jne 0x41daa3
push 0x20000
call fcn.00442113
add esp, 4
push 0
mov dword [edi], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x1040]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call ebp
cmp eax, 1
jne 0x41daa3
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x41daa3
mov ecx, dword [edi]
push 0x20000
push eax
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esi + 0x1048]
call fcn.0041cf80
mov edx, dword [esi + 8]
inc ebx
shr edx, 0xa
add edi, 4
cmp ebx, edx
jb 0x41d960
test dword [esi + 8], 0x3ff
je 0x41da7b
mov edx, dword [esi + 0x1040]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push edx
call ebp
cmp eax, 1
jne 0x41daa3
cmp dword [esp + 0x10], 4
jne 0x41daa3
push 0x20000
call fcn.00442113
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
mov dword [esi + ebx*4 + 0x40], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x1040]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call ebp
cmp eax, 1
jne 0x41daa3
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x41daa3
mov edx, dword [esi + ebx*4 + 0x40]
push 0x20000
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esi + 0x1048]
call fcn.0041cf80
mov bl, byte [esp + 0x40024]
mov byte [esi + 0x1045], bl
mov al, 1
mov ecx, dword [esp + 0x40018]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0042f2ae
add esp, 0x4000c
ret 0xc
mov eax, dword [esi + 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1040], 0xffffffff
xor al, al
jmp 0x41da8a
xor eax, eax
mov ecx, 0xb
lea edi, [esi + 0x14]
mov dword [esi], 0x6070805
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
rep stosd dword es:[edi], eax
jmp 0x41da82