Function at 0x411ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a86b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x61cff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x4c], ax
lea eax, [edi + 0x20]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x411b66
push 0xffffffffffffffff
push 0
push eax
call fcn.0040fa40
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
test esi, esi
je 0x411b61
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp word [eax + esi*2 - 2], 0x5c
jne 0x411b61
lea ebx, [esi - 1]
cmp esi, ebx
jae 0x411b49
push str.invalid_string_position
call fcn.0057f86e
cmp edx, 8
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
cmovae eax, ecx
xor ecx, ecx
mov word [eax + ebx*2], cx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
jae 0x411b69
lea ecx, [ebp - 0x28]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x411bd4
push 7
push 0x5f4f90
lea ecx, [edi + 0x27c]
call fcn.0040f000
lea ecx, [ebp - 0x6c]
call fcn.00410470
push 0xffffffffffffffff
push 0
push eax
lea ecx, [edi + 0x27c]
mov byte [ebp - 4], 2
call fcn.0040ecc0
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x411bcd
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.0040b950
xor esi, esi
jmp 0x411d10
test byte [edi + 0x38], 1
je 0x411d0b
mov ecx, edi
call fcn.004120e0
test eax, eax
je 0x411d0b
lea esi, [edi + 0x268]
mov ecx, edi
push esi
call fcn.00412300
test eax, eax
je 0x411ce3
cmp dword [esi], 2
jne 0x411cd9
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x200
lea eax, [edi + 0x68]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411bcd
cmp dword [ebp - 0x2c], 0x200
je 0x411c43
push 0x103
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x411d10
push 0
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x54], xmm0
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x411bcd
movzx eax, word [edi + 0x7e]
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
mov esi, eax
test ax, ax
jne 0x411c81
mov esi, dword [edi + 0x8c]
movzx ebx, word [edi + 0x73]
test bx, bx
je 0x411cc7
movzx eax, word [edi + 0x79]
mov ecx, ebx
shl eax, 5
dec eax
add eax, ecx
cdq
idiv ecx
movzx ecx, byte [edi + 0x78]
imul ecx, esi
add eax, ecx
movzx ecx, word [edi + 0x76]
add eax, ecx
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
push edx
push eax
push ecx
push esi
call fcn.0057ef00
mov dword [edi + 0x270], eax
mov dword [edi + 0x274], edx
jmp 0x411cd9
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x270], eax
mov dword [edi + 0x274], edx
mov dword [edi + 0x278], 1
cmp dword [edi + 0x278], 0
je 0x411d0b
test byte [edi + 0x38], 0xe
jne 0x411d04
cmp dword [edi + 0x298], 0
jne 0x411d04
cmp dword [edi + 0x294], 0
je 0x411d0b
mov ecx, edi
call fcn.00412960
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x411d25
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040b950
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057e2f0
mov esp, ebp
pop ebp
ret