Function at 0x40ec70
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x2c], edi
lea eax, [ecx + 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040feb0
mov byte [ebp - 4], 1
lea eax, [ebx + 0x10]
cmp dword [ebx + 0x24], 8
lea ecx, [ebp - 0x5c]
push dword [ebx + 0x20]
cmovae eax, dword [ebx + 0x10]
push eax
call fcn.00410220
push 4
push str..dat
lea ecx, [ebp - 0x5c]
call fcn.00410220
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.0040feb0
lea eax, [ebp - 0x44]
push eax
call fcn.004bfb96
add esp, 0x20
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040a990
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x44]
mov byte [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
test ecx, ecx
je 0x40ed85
test eax, eax
je 0x40ed63
cmp ecx, 0x11
ja 0x40ed5f
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004e8000
add esp, 0xc
jmp 0x40ed85
test eax, eax
jne 0x40ed70
call fcn.004efe6a
mov dword [eax], 0x16
jmp 0x40ed80
cmp ecx, 0x11
jbe 0x40ed85
call fcn.004efe6a
mov dword [eax], 0x22
call fcn.004eb816
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
push 0x2b4
mov byte [ebp - 4], 3
call fcn.004244ff
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0040c720
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
push 0x6d8f4c
cmovae ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x114]
push ecx
push eax
mov dword [ebp - 0x114], 0
call fcn.004f0e65
mov eax, dword [ebp - 0x114]
add esp, 0xc
test eax, eax
jne 0x40ef30
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call fcn.0040f400
mov byte [ebp - 4], 5
test esi, esi
je 0x40ee50
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0xd8]
call fcn.0040df60
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40ee8f
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ee85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3ba
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 8
jb 0x40eedb
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eed1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3bf
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebx + 0x24]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x40ef29
mov ecx, dword [ebx + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3c4
push edx
push ecx
call fcn.004244c5
add esp, 8
mov eax, edi
jmp 0x40f39a
push 2
push 0
push eax
call fcn.004f074f
push dword [ebp - 0x114]
call fcn.004f0cc1
push 0
push 0
push dword [ebp - 0x114]
mov esi, eax
call fcn.004f074f
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
push esi
mov byte [ebp - 4], 6
call fcn.004244d3
push dword [ebp - 0x114]
mov edi, eax
push esi
push 1
push edi
call fcn.004f0364
push dword [ebp - 0x114]
call fcn.004efa5e
add esp, 0x34
lea ecx, [ebp - 0x74]
push 0
push esi
call fcn.0040ff90
xor edx, edx
test esi, esi
jle 0x40efb8
cmp dword [ebp - 0x60], 0x10
lea ecx, [ebp - 0x74]
mov al, byte [edx + edi]
cmovae ecx, dword [ebp - 0x74]
mov byte [ecx + edx], al
inc edx
cmp edx, esi
jl 0x40efa2
push ecx
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x12c]
call fcn.0040d4b0
add esp, 4
lea ecx, [ebp - 0x74]
push eax
call fcn.0040ab30
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f00d
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f003
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3c9
push edx
push ecx
call fcn.004244c5
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.0040ac50
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c2f0
push 0x38
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004e7e30
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.004c0ecc
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x110]
call fcn.004c12f1
test al, al
je 0x40f202
push 5
push str.token
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040ad50
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004c125c
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f0f2
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f0e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3ce
push edx
push ecx
call fcn.004244c5
add esp, 8
push 3
push 0x6d8f08
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040ad50
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004c125c
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f17a
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f170
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3d3
push edx
push ecx
call fcn.004244c5
add esp, 8
push 5
push str.count
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040ad50
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004c125c
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f202
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3d8
push edx
push ecx
call fcn.004244c5
add esp, 8
push edi
call fcn.00423e86
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0xd8]
add esp, 4
mov ecx, esi
push eax
call fcn.0040f400
lea ecx, [ebp - 0x110]
call fcn.004c0f7d
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x40f265
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f25b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3dd
push edx
push ecx
call fcn.004244c5
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp edx, 0x10
jb 0x40f2b2
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f2a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3e2
push edx
push ecx
call fcn.004244c5
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40f2c3
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0xd8]
call fcn.0040df60
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40f302
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f2f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3e7
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 8
jb 0x40f34e
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f344
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3ec
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebx + 0x24]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp edx, 8
jb 0x40f398
mov ecx, dword [ebx + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f38e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f3f1
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 - 0x14]
xor ecx, ebp
call fcn.00423e75
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
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