Function at 0x40abb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x410b4c]
sub esp, 0x40
test eax, eax
je 0x40abcf
mov eax, dword [0x417fcc]
push eax
push 0x5ee
call fcn.00401160
add esp, 8
mov ecx, dword [0x417fd0]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
push 2
push 0xfffffffffffffff8
push ecx
call edi
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40b466
mov eax, dword [0x417fd0]
mov ebp, dword [sym.imp.MSVCRT.dll__read]
lea edx, [esp + 0x38]
push 8
push edx
push eax
call ebp
mov ebx, dword [sym.imp.MSVCRT.dll__errno]
add esp, 0xc
cmp eax, 8
je 0x40ac30
call ebx
mov ecx, dword [eax]
mov edx, dword [0x417fcc]
push ecx
push edx
push 0x5e1
call fcn.004016c0
add esp, 0xc
cmp dword [esp + 0x3c], 0x4a525301
jne 0x40b466
mov eax, dword [esp + 0x38]
mov ecx, dword [0x417fd0]
push 0
push eax
push ecx
call edi
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40ac6e
call ebx
mov edx, dword [eax]
mov eax, dword [0x417fcc]
push edx
push eax
push 0x5e0
call fcn.004016c0
add esp, 0xc
sub esi, dword [esp + 0x38]
cmp esi, 8
jge 0x40ac8b
mov ecx, dword [0x417fcc]
push ecx
push 0x5e6
call fcn.00401160
add esp, 8
push esi
call fcn.0040e2f0
mov edx, dword [0x417fd0]
mov ebx, eax
push esi
push ebx
push edx
mov dword [esp + 0x44], ebx
call ebp
add esp, 0x10
cmp eax, esi
je 0x40acc6
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
mov ecx, dword [0x417fcc]
push eax
push ecx
push 0x5e1
call fcn.004016c0
add esp, 0xc
cmp byte [ebx], 0x16
je 0x40acdf
mov edx, dword [0x417fcc]
push edx
push 0x5e6
call fcn.00401160
add esp, 8
mov al, byte [ebx + 1]
mov byte [0x4180e9], al
mov cl, byte [ebx + 2]
mov byte [0x4180e8], cl
mov dl, byte [ebx + 3]
mov byte [0x4180e7], dl
mov dl, byte [ebx + 4]
cmp al, 2
mov byte [0x4180e6], dl
jne 0x40ad0a
test cl, cl
je 0x40ad1d
mov eax, dword [0x417fcc]
push eax
push 0x5e6
call fcn.00401160
add esp, 8
lea edi, [ebx + 5]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x417fd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x417fd8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebx + 6]
lea edi, [ecx + ebx + 6]
xor ebx, ebx
mov ebp, edi
cmp al, 0x17
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
jne 0x40adb6
lea esi, [edi + 5]
add edi, 0xd
cmp word [esi - 4], 0
je 0x40ad86
cmp word [esi], 0
je 0x40ad86
cmp word [esi - 2], 0
je 0x40ad86
cmp word [esi + 2], 0
jne 0x40ad99
mov eax, dword [0x417fcc]
push eax
push 0x5e6
call fcn.00401160
add esp, 8
dec word [esi - 4]
dec word [esi]
dec word [esi - 2]
dec word [esi + 2]
mov al, byte [edi]
inc ebx
add esi, 0xd
cmp al, 0x17
je 0x40ad68
mov dword [esp + 0x2c], ebx
cmp byte [edi], 0x18
je 0x40adcf
mov ecx, dword [0x417fcc]
push ecx
push 0x5e6
call fcn.00401160
add esp, 8
inc edi
xor eax, eax
xor ecx, ecx
mov dword [0x4180d8], edi
test ebx, ebx
jle 0x40adfb
lea edx, [ebp + 3]
mov esi, ebx
xor edi, edi
mov di, word [edx - 2]
cmp edi, eax
je 0x40adee
inc ecx
xor eax, eax
inc ecx
mov ax, word [edx]
add edx, 0xd
inc eax
dec esi
jne 0x40ade3
inc ecx
mov dword [esp + 0x1c], ecx
lea edx, [ecx*4]
push edx
call fcn.0040e2f0
add esp, 4
xor edi, edi
xor ecx, ecx
xor esi, esi
test ebx, ebx
mov dword [esp + 0x10], eax
jle 0x40ae5d
lea edx, [ebp + 1]
xor ebp, ebp
mov bp, word [edx]
cmp ebp, ecx
je 0x40ae35
mov word [eax], cx
mov word [eax + 2], si
inc edi
add eax, 4
mov cx, word [edx]
xor esi, esi
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], 0xffff
mov cx, word [edx + 2]
mov si, word [edx + 6]
inc ecx
inc esi
inc edi
add eax, 4
add edx, 0xd
dec ebx
jne 0x40ae21
mov eax, dword [esp + 0x10]
mov word [eax + edi*4], cx
mov word [eax + edi*4 + 2], si
mov edx, dword [0x4180d8]
push edx
call fcn.0040cff0
add esp, 4
mov dword [0x413bd0], eax
test eax, eax
jne 0x40ae96
mov eax, dword [0x417fcc]
push eax
push 0x5ef
call fcn.00401160
mov eax, dword [0x413bd0]
add esp, 8
mov esi, 1
cmp word [eax + 0x14], si
je 0x40aedc
mov ecx, dword [0x417fcc]
push ecx
call fcn.0040d7e0
xor edx, edx
push 0
mov dx, word [eax + 2]
mov eax, dword [0x418218]
mov byte [edx + eax], 0
mov ecx, dword [0x413bd0]
push ecx
call fcn.00409800
mov edx, dword [0x413bd0]
add esp, 0xc
mov word [edx + 0x14], si
mov eax, dword [0x413bd0]
add eax, 0x23
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40af05
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x48], eax
jne 0x40af2a
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov esi, dword [edx + 8]
inc ecx
cmp ecx, esi
mov dword [esp + 0x4c], ecx
jge 0x40b3ba
mov eax, dword [edx]
mov eax, dword [eax + ecx*4]
test eax, eax
mov dword [esp + 0x48], eax
je 0x40af10
mov ebx, dword [eax + 8]
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0xa]
test eax, eax
je 0x40af3c
mov edi, dword [eax]
jmp 0x40af3e
xor edi, edi
xor esi, esi
xor ebp, ebp
test edi, edi
jle 0x40af81
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xa]
mov edx, dword [esp + 0x10]
push ecx
mov cx, word [eax + esi*4 + 4]
push edx
push ecx
call fcn.0040ab50
add esp, 0xc
cmp ax, 0xffff
je 0x40af7c
mov edx, dword [ebx + 0xa]
inc ebp
mov word [edx + ebp*4], ax
mov eax, dword [ebx + 0xa]
mov cx, word [eax + esi*4 + 6]
mov word [eax + ebp*4 + 2], cx
inc esi
cmp esi, edi
jl 0x40af46
mov eax, dword [0x413bd0]
mov edx, ebp
sub edx, edi
add word [eax + 6], dx
mov ecx, dword [ebx + 0xa]
test ecx, ecx
je 0x40af99
mov eax, dword [ecx]
jmp 0x40af9b
xor eax, eax
cmp ebp, eax
je 0x40b067
cmp ebp, 0x14
jge 0x40afac
mov esi, ebp
jmp 0x40afbd
mov eax, ebp
mov esi, 5
cdq
idiv esi
mov esi, ebp
sub esi, edx
add esi, 5
test ecx, ecx
je 0x40b005
mov ecx, dword [ecx]
cmp ecx, 0x14
jl 0x40afd6
mov eax, ecx
mov edi, 5
cdq
idiv edi
sub ecx, edx
add ecx, edi
cmp esi, ecx
je 0x40b062
cmp ebp, 0x14
mov eax, ebp
jl 0x40aff3
cdq
mov ecx, 5
idiv ecx
mov eax, ebp
sub eax, edx
add eax, ecx
lea esi, [eax*4 + 4]
mov eax, dword [ebx + 0xa]
test eax, eax
je 0x40b009
mov ecx, dword [eax]
jmp 0x40b00d
xor ecx, ecx
jmp 0x40afd6
xor ecx, ecx
jmp 0x40b020
cmp ecx, 0x14
jl 0x40b020
mov eax, ecx
mov edi, 5
cdq
idiv edi
sub ecx, edx
add ecx, edi
push esi
mov dword [esp + 0x18], ecx
call fcn.0040e700
mov ecx, esi
mov esi, dword [ebx + 0xa]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0xa]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.0040e7a0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [ebx + 0xa], eax
mov ecx, dword [ebx + 0xa]
mov dword [ecx], ebp
mov eax, dword [ebx + 0xe]
test eax, eax
je 0x40b072
mov edi, dword [eax]
jmp 0x40b074
xor edi, edi
xor esi, esi
xor ebp, ebp
test edi, edi
mov dword [esp + 0x14], edi
jle 0x40b0bb
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xe]
mov eax, dword [esp + 0x10]
push edx
mov dx, word [ecx + esi*4 + 4]
push eax
push edx
call fcn.0040ab50
add esp, 0xc
cmp ax, 0xffff
je 0x40b0b6
mov ecx, dword [ebx + 0xe]
inc ebp
mov word [ecx + ebp*4], ax
mov eax, dword [ebx + 0xe]
mov dx, word [eax + esi*4 + 6]
mov word [eax + ebp*4 + 2], dx
inc esi
cmp esi, edi
jl 0x40b080
mov ecx, dword [ebx + 0xe]
test ecx, ecx
je 0x40b0c6
mov eax, dword [ecx]
jmp 0x40b0c8
xor eax, eax
cmp ebp, eax
je 0x40b19c
cmp ebp, 0x14
jge 0x40b0d9
mov esi, ebp
jmp 0x40b0ea
mov eax, ebp
mov esi, 5
cdq
idiv esi
mov esi, ebp
sub esi, edx
add esi, 5
test ecx, ecx
je 0x40b136
mov ecx, dword [ecx]
cmp ecx, 0x14
jl 0x40b107
mov eax, ecx
mov edi, 5
cdq
idiv edi
sub ecx, edx
add ecx, edi
mov edi, dword [esp + 0x14]
cmp esi, ecx
je 0x40b197
cmp ebp, 0x14
mov eax, ebp
jl 0x40b124
cdq
mov ecx, 5
idiv ecx
mov eax, ebp
sub eax, edx
add eax, ecx
lea esi, [eax*4 + 4]
mov eax, dword [ebx + 0xe]
test eax, eax
je 0x40b13a
mov ecx, dword [eax]
jmp 0x40b13e
xor ecx, ecx
jmp 0x40b107
xor ecx, ecx
jmp 0x40b151
cmp ecx, 0x14
jl 0x40b151
mov eax, ecx
mov edi, 5
cdq
idiv edi
sub ecx, edx
add ecx, edi
push esi
mov dword [esp + 0x24], ecx
call fcn.0040e580
mov ecx, esi
mov esi, dword [ebx + 0xe]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0xe]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.0040e620
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [ebx + 0xe], eax
mov ecx, dword [ebx + 0xe]
mov dword [ecx], ebp
mov eax, dword [0x413bd0]
sub ebp, edi
add word [eax + 4], bp
mov eax, dword [ebx + 0xa]
test eax, eax
je 0x40b1b7
cmp dword [eax], 0
jne 0x40aef3
mov eax, dword [ebx + 0x12]
test eax, eax
je 0x40b1c2
mov eax, dword [eax]
jmp 0x40b1c4
xor eax, eax
test eax, eax
jle 0x40b32b
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 0x12]
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + edx + 4]
mov eax, dword [ebp + 0x16]
add ebp, 0x16
test eax, eax
je 0x40b1f1
mov eax, dword [eax]
jmp 0x40b1f3
xor eax, eax
xor edi, edi
test eax, eax
mov dword [esp + 0x24], edi
jle 0x40b233
xor ecx, ecx
xor edx, edx
mov ebx, eax
mov eax, dword [ebp]
mov esi, dword [edx + eax + 4]
cmp esi, dword [esp + 0x18]
je 0x40b225
mov dword [ecx + eax + 4], esi
mov eax, dword [ebp]
inc edi
add ecx, 6
mov si, word [edx + eax + 8]
mov word [ecx + eax + 2], si
add edx, 6
dec ebx
jne 0x40b203
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x40b23e
mov eax, dword [ecx]
jmp 0x40b240
xor eax, eax
cmp edi, eax
je 0x40b311
cmp edi, 0x14
mov eax, edi
jl 0x40b25d
cdq
mov esi, 5
idiv esi
mov eax, edi
sub eax, edx
add eax, esi
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x40b2ad
mov ecx, dword [ecx]
cmp ecx, 0x14
jl 0x40b27e
mov eax, ecx
mov esi, 5
cdq
idiv esi
mov eax, dword [esp + 0x20]
sub ecx, edx
add ecx, esi
cmp eax, ecx
je 0x40b30c
cmp edi, 0x14
mov eax, edi
jl 0x40b29b
cdq
mov ecx, 5
idiv ecx
mov eax, edi
sub eax, edx
add eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [ebp]
test eax, eax
lea esi, [edx + edx + 4]
je 0x40b2b1
mov ecx, dword [eax]
jmp 0x40b2b5
xor ecx, ecx
jmp 0x40b27e
xor ecx, ecx
jmp 0x40b2c8
cmp ecx, 0x14
jl 0x40b2c8
mov eax, ecx
mov edi, 5
cdq
idiv edi
sub ecx, edx
add ecx, edi
push esi
mov dword [esp + 0x24], ecx
call fcn.0040e400
mov ecx, esi
mov esi, dword [ebp]
mov ebx, eax
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + eax*2]
mov eax, dword [ebp]
lea edx, [ecx + ecx + 4]
push edx
push eax
call fcn.0040e4a0
mov edi, dword [esp + 0x30]
mov dword [ebp], ebx
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [ebp]
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add ecx, 6
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
jne 0x40b1d8
mov eax, dword [ebx + 0x12]
test eax, eax
je 0x40b336
mov ecx, dword [eax]
jmp 0x40b338
xor ecx, ecx
mov eax, dword [0x413bd0]
sub word [eax + 8], cx
mov eax, dword [ebx + 0x12]
test eax, eax
je 0x40aef3
mov ecx, dword [eax]
test ecx, ecx
je 0x40aef3
cmp ecx, 0x14
mov eax, ecx
jl 0x40b36b
cdq
mov esi, 5
idiv esi
mov eax, ecx
sub eax, edx
add eax, esi
test eax, eax
je 0x40b3ac
cmp ecx, 0x14
jl 0x40b382
mov eax, ecx
mov esi, 5
cdq
idiv esi
sub ecx, edx
add ecx, esi
push 4
mov esi, ecx
call fcn.0040e400
mov edx, dword [ebx + 0x12]
mov ebp, eax
lea ecx, [esi + esi*2]
mov eax, dword [edx]
mov dword [ebp], eax
mov eax, dword [ebx + 0x12]
lea edx, [ecx + ecx + 4]
push edx
push eax
call fcn.0040e4a0
add esp, 0xc
mov dword [ebx + 0x12], ebp
mov ecx, dword [ebx + 0x12]
mov dword [ecx], 0
jmp 0x40aef3
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x40b44f
mov edx, dword [esp + 0x30]
mov ebx, dword [sym.imp.MSVCRT.dll__lseek]
mov ebp, dword [sym.imp.MSVCRT.dll__errno]
mov edi, eax
lea esi, [edx + 5]
mov eax, dword [esi + 4]
mov ecx, dword [0x417fd0]
push 0
push eax
push ecx
call ebx
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40b40a
call ebp
mov edx, dword [eax]
mov eax, dword [0x417fcc]
push edx
push eax
push 0x5e0
call fcn.004016c0
add esp, 0xc
call fcn.0040ca10
call fcn.004024e0
test eax, eax
je 0x40b421
cmp byte [0x4180ea], 0x16
je 0x40b435
mov ecx, dword [0x417fcc]
push ecx
push 0x5e6
call fcn.00401160
add esp, 8
mov dx, word [esi]
push 1
mov word [0x4180e4], dx
call fcn.00405240
add esp, 4
add esi, 0xd
dec edi
jne 0x40b3db
mov eax, dword [esp + 0x10]
push eax
call fcn.0040e320
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040e320
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret