Function at 0x40f320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e9a
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x28], eax
lea eax, [ecx + 0x98]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040fc30
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.0040ffa0
push 4
push str..dat
lea ecx, [ebp - 0x58]
call fcn.0040ffa0
push 0x3a8
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040fc30
lea eax, [ebp - 0x40]
push eax
call fcn.004c0572
add esp, 0x20
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a920
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 0x40f424
test eax, eax
je 0x40f402
cmp ecx, 0x11
ja 0x40f3fe
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004e7fd0
add esp, 0xc
jmp 0x40f424
test eax, eax
jne 0x40f40f
call fcn.004efd9f
mov dword [eax], 0x16
jmp 0x40f41f
cmp ecx, 0x11
jbe 0x40f424
call fcn.004efd9f
mov dword [eax], 0x22
call fcn.004eb7e6
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.0042429f
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0040c6d0
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0x6d8fac
cmovae ecx, dword [ebp - 0x58]
push ecx
call fcn.004f0d83
mov edi, eax
add esp, 8
test edi, edi
jne 0x40f5bc
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0xd0]
push eax
mov ecx, edi
call fcn.0040f280
mov byte [ebp - 4], 5
test esi, esi
je 0x40f4e0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0xd0]
call fcn.0040def0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40f51f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f515
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f971
push edx
push ecx
call fcn.00424265
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 0x40f56b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f561
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f976
push edx
push ecx
call fcn.00424265
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 0x40f952
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f948
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f97b
jmp 0x40f948
push 2
push 0
push edi
call fcn.004f0684
push edi
call fcn.004f0bf6
push 0
push 0
push edi
mov esi, eax
call fcn.004f0684
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push esi
mov byte [ebp - 4], 6
call fcn.00424273
push edi
push esi
push 1
push eax
mov dword [ebp - 0x10c], eax
call fcn.004f0299
push edi
call fcn.004ef993
add esp, 0x34
lea ecx, [ebp - 0x70]
push 0
push esi
call fcn.0040fd10
mov edi, dword [ebp - 0x10c]
xor edx, edx
test esi, esi
jle 0x40f63a
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 0x40f624
push ecx
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x124]
call fcn.0040d460
add esp, 4
lea ecx, [ebp - 0x70]
push eax
call fcn.0040aac0
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f68f
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f685
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f980
push edx
push ecx
call fcn.00424265
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.0040abe0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c2a0
push 0x38
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004e7e00
add esp, 0xc
lea ecx, [ebp - 0x108]
call fcn.004c18a8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x108]
call fcn.004c1ccd
test al, al
je 0x40f884
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.0040ace0
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x108]
call fcn.004c1c38
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f774
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f76a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f985
push edx
push ecx
call fcn.00424265
add esp, 8
push 3
push 0x6d8f68
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0xf
mov byte [ebp - 0x124], 0
call fcn.0040ace0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x108]
call fcn.004c1c38
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f7fc
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f7f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f98a
push edx
push ecx
call fcn.00424265
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.0040ace0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x108]
call fcn.004c1c38
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x110]
cmp edx, 0x10
jb 0x40f884
mov ecx, dword [ebp - 0x124]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f87a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f98f
push edx
push ecx
call fcn.00424265
add esp, 8
push edi
call fcn.00423c26
mov edi, dword [ebp - 0x128]
lea eax, [ebp - 0xd0]
add esp, 4
mov ecx, edi
push eax
call fcn.0040f280
lea ecx, [ebp - 0x108]
call fcn.004c1959
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x40f8e7
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f8dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f994
push edx
push ecx
call fcn.00424265
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 0x40f930
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f926
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f999
push edx
push ecx
call fcn.00424265
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40f4e0
mov eax, dword [ecx]
push 1
jmp 0x40f4de
push edx
push ecx
call fcn.00424265
add esp, 8
mov eax, edi
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.00423c15
mov esp, ebp
pop ebp
ret 0x20
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
int3