Function at 0x411a1a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
mov dword [ebp - 8], ebx
jne 0x411a37
xor eax, eax
jmp 0x411c02
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push ebx
push ebx
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x3a]
push eax
push dword [ebp + 8]
call esi
mov eax, 0x4d42
cmp word [ebp - 0x3c], ax
je 0x411a87
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x32], ebx
push dword [ebp + 8]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x28
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x411a30
lea eax, [ebp - 0x64]
call fcn.00411797
mov ecx, dword [ebp - 0x64]
movzx edx, ax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
cmp ecx, 0xc
je 0x411abe
cmp ecx, 0x28
je 0x411b11
jmp 0x411a30
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
movzx ecx, ax
shr eax, 0x10
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x24]
push 1
mov word [ebp - 0x58], ax
shr eax, 0x10
push ebx
mov word [ebp - 0x56], ax
movzx eax, dx
push 0xffffffffffffffe4
push dword [ebp + 8]
mov dword [ebp - 0x64], 0x28
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jne 0x411b2e
movzx eax, word [ebp - 0x56]
imul eax, dword [ebp - 0x60]
add eax, 0x1f
shr eax, 5
imul eax, dword [ebp - 0x5c]
shl eax, 2
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x44], ebx
jne 0x411b41
lea eax, [ebp - 0x64]
call fcn.00411797
movzx eax, ax
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x1c], eax
shl eax, 2
mov dword [ebp - 0x20], eax
add eax, ecx
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x411a30
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0xa
pop ecx
lea esi, [ebp - 0x64]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x64]
lea esi, [eax + ecx]
cmp word [ebp - 0xc], bx
je 0x411bde
cmp dword [ebp - 0x18], 0xc
push ebx
lea eax, [ebp - 8]
push eax
jne 0x411bd1
mov edi, dword [ebp - 0x1c]
mov eax, edi
imul eax, eax, 3
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
dec edi
cmp edi, ebx
jl 0x411bde
mov eax, edi
imul eax, eax, 3
mov byte [ebp - 9], bl
lea eax, [eax + esi + 1]
mov cl, byte [eax + 1]
mov byte [ebp - 0xa], cl
mov cl, byte [eax - 1]
mov byte [ebp - 0xc], cl
mov cl, byte [eax]
mov byte [ebp - 0xb], cl
mov ecx, dword [ebp - 0xc]
mov dword [esi + edi*4], ecx
dec edi
sub eax, 3
cmp edi, ebx
jge 0x411bb0
jmp 0x411bde
push dword [ebp - 0x20]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x32]
cmp eax, ebx
je 0x411bf6
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4