Function at 0x410ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4152a0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov eax, dword [ecx + 0x34]
xor eax, ebx
mov edx, dword [ecx + 0x30]
xor edx, edi
or edx, eax
mov esi, dword [ebp + 0x14]
je 0x410f2d
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push 0
push eax
push edi
push dword [ecx + 0x28]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411101
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov ecx, esi
mov esi, dword [ebp + 0x14]
mov al, 1
test esi, esi
je 0x4111e2
mov ebx, dword [ebp + 0x10]
lea edx, [ecx + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x44], ecx
jmp 0x410fd6
push dword [edx + 0x18]
push ecx
push eax
call fcn.00407250
add esp, 0xc
push str.__at_offset
push eax
call fcn.00401560
add esp, 8
mov ecx, eax
push dword [esi + 0x34]
push dword [esi + 0x30]
call fcn.00410870
push str..__Tried_to_read
push eax
call fcn.00401560
add esp, 8
mov ecx, eax
push edi
call fcn.004019c0
push str._bytes_and_received
push eax
call fcn.00401560
add esp, 8
mov ecx, eax
push dword [ebp - 0x20]
call fcn.004019c0
push str._bytes.
push eax
call fcn.00401560
add esp, 8
push eax
call fcn.00401370
mov ecx, esi
add esp, 4
mov edi, dword [ebp - 0x20]
add dword [ecx + 0x30], edi
adc dword [ecx + 0x34], 0
add ebx, edi
mov esi, dword [ebp - 0x28]
sub esi, edi
je 0x4110fa
mov eax, dword [ebp + 0x18]
cmp esi, eax
mov dword [ebp - 0x28], esi
mov edi, esi
cmova edi, eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov esi, ecx
push dword [ecx + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411040
cmp edi, dword [ebp - 0x20]
jne 0x411010
mov ecx, esi
jmp 0x410fc2
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 0xffffffff
push str.Incomplete_read_from__
push eax
call fcn.00401560
mov edx, dword [ebp - 0x44]
add esp, 8
cmp dword [edx + 0x1c], 0xf
mov ecx, dword [ebp - 0x24]
jbe 0x410f50
mov ecx, dword [edx + 8]
jmp 0x410f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 0xffffffff
push str.Could_not_read
push eax
call fcn.00401560
add esp, 8
mov ecx, eax
push 0
push dword [ebp - 0x28]
call fcn.00410870
push str._bytes_from__
push eax
call fcn.00401560
add esp, 8
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], 0xf
jbe 0x411089
mov edx, dword [esi + 8]
mov dword [ebp - 0x24], edx
push ecx
push dword [ebp - 0x24]
push eax
call fcn.00407250
add esp, 0xc
push str.__at_offset
push eax
call fcn.00401560
add esp, 8
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410870
push 0x4f907c
push eax
call fcn.00401560
add esp, 8
mov esi, eax
lea edi, [ebp - 0x40]
push ebx
push edi
call fcn.0040fbf0
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
jbe 0x4110da
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x10], 1
push eax
push edi
push esi
call fcn.00407250
add esp, 0xc
push eax
call fcn.00401370
add esp, 4
jmp 0x4111ac
mov al, 1
jmp 0x4111e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push str.Could_not_read
push dword [esi + 4]
call fcn.00401560
add esp, 8
mov ecx, eax
push 0
push dword [ebp + 0x14]
call fcn.00410870
push str._bytes_from__
push eax
call fcn.00401560
add esp, 8
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x1c], 0xf
jbe 0x411141
mov esi, dword [esi + 8]
jmp 0x411144
add esi, 8
push ecx
push esi
push eax
call fcn.00407250
add esp, 0xc
push str.__at_offset
push eax
call fcn.00401560
add esp, 8
mov ecx, eax
push dword [ebp + 0xc]
push edi
call fcn.00410870
push 0x4f907c
push eax
call fcn.00401560
add esp, 8
mov esi, eax
lea edi, [ebp - 0x40]
push ebx
push edi
call fcn.0040fbf0
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
jbe 0x411191
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x10], 0
push eax
push edi
push esi
call fcn.00407250
add esp, 0xc
push eax
call fcn.00401370
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4111e0
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4111d6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4111f6
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
call fcn.004cc578
nop dword [eax + eax]
push ebp
sub esp, 0x14
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x41123b
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411231
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411240
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
add esp, 0x14
pop ebp
ret
call fcn.004cc578
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x14
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x41128b
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411281
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411290
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
add esp, 0x14
pop ebp
ret
call fcn.004cc578
int3