Function at 0x40f4a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652f1a
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x28], edi
lea eax, [ecx + 0x98]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040feb0
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x58]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.00410220
push 4
push str..dat
lea ecx, [ebp - 0x58]
call fcn.00410220
push 0x3a8
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040feb0
lea eax, [ebp - 0x40]
push eax
call fcn.004bfb96
add esp, 0x20
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a990
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x40]
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
test ecx, ecx
je 0x40f5a4
test eax, eax
je 0x40f582
cmp ecx, 0x11
ja 0x40f57e
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004e8000
add esp, 0xc
jmp 0x40f5a4
test eax, eax
jne 0x40f58f
call fcn.004efe6a
mov dword [eax], 0x16
jmp 0x40f59f
cmp ecx, 0x11
jbe 0x40f5a4
call fcn.004efe6a
mov dword [eax], 0x22
call fcn.004eb816
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
push 0x2b4
mov byte [ebp - 4], 3
call fcn.004244ff
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0040c720
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0x6d8f4c
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x10c]
push ecx
push eax
mov dword [ebp - 0x10c], 0
call fcn.004f0e65
mov eax, dword [ebp - 0x10c]
add esp, 0xc
test eax, eax
jne 0x40f74f
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.0040f400
mov byte [ebp - 4], 5
test esi, esi
je 0x40f66f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0xd0]
call fcn.0040df60
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40f6ae
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbd6
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 8
jb 0x40f6fa
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbdb
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40f748
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f73e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbe0
push edx
push ecx
call fcn.004244c5
add esp, 8
mov eax, edi
jmp 0x40fbb9
push 2
push 0
push eax
call fcn.004f074f
push dword [ebp - 0x10c]
call fcn.004f0cc1
push 0
push 0
push dword [ebp - 0x10c]
mov esi, eax
call fcn.004f074f
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push esi
mov byte [ebp - 4], 6
call fcn.004244d3
push dword [ebp - 0x10c]
mov edi, eax
push esi
push 1
push edi
call fcn.004f0364
push dword [ebp - 0x10c]
call fcn.004efa5e
add esp, 0x34
lea ecx, [ebp - 0x70]
push 0
push esi
call fcn.0040ff90
xor edx, edx
test esi, esi
jle 0x40f7d7
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x70]
mov al, byte [edx + edi]
cmovae ecx, dword [ebp - 0x70]
mov byte [ecx + edx], al
inc edx
cmp edx, esi
jl 0x40f7c1
push ecx
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x124]
call fcn.0040d4b0
add esp, 4
lea ecx, [ebp - 0x70]
push eax
call fcn.0040ab30
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f82c
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f822
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbe5
push edx
push ecx
call fcn.004244c5
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.0040ac50
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c2f0
push 0x38
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004e7e30
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.004c0ecc
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x108]
call fcn.004c12f1
test al, al
je 0x40fa21
push 5
push str.token
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0xf
mov byte [ebp - 0x124], 0
call fcn.0040ad50
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x108]
call fcn.004c125c
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f911
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f907
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbea
push edx
push ecx
call fcn.004244c5
add esp, 8
push 3
push 0x6d8f08
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0xf
mov byte [ebp - 0x124], 0
call fcn.0040ad50
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x108]
call fcn.004c125c
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f999
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f98f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbef
push edx
push ecx
call fcn.004244c5
add esp, 8
push 5
push str.count
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0xf
mov byte [ebp - 0x124], 0
call fcn.0040ad50
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x108]
call fcn.004c125c
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40fa21
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbf4
push edx
push ecx
call fcn.004244c5
add esp, 8
push edi
call fcn.00423e86
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0xd0]
add esp, 4
mov ecx, esi
push eax
call fcn.0040f400
lea ecx, [ebp - 0x108]
call fcn.004c0f7d
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x40fa84
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbf9
push edx
push ecx
call fcn.004244c5
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 0x10
jb 0x40fad1
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fac7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbfe
push edx
push ecx
call fcn.004244c5
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40fae2
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0xd0]
call fcn.0040df60
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40fb21
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc03
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 8
jb 0x40fb6d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc08
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40fbb7
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fbad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc0d
push edx
push ecx
call fcn.004244c5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423e75
mov esp, ebp
pop ebp
ret 0x20
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
int3