Function at 0x40ebe0
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 0x652dfd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
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 eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 0x50]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040fc30
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.0040ffa0
push 4
push str..dat
lea ecx, [ebp - 0x5c]
call fcn.0040ffa0
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.0040fc30
lea eax, [ebp - 0x44]
push eax
call fcn.004c0572
add esp, 0x20
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040a920
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 0x40ecf5
test eax, eax
je 0x40ecd3
cmp ecx, 0x11
ja 0x40eccf
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004e7fd0
add esp, 0xc
jmp 0x40ecf5
test eax, eax
jne 0x40ece0
call fcn.004efd9f
mov dword [eax], 0x16
jmp 0x40ecf0
cmp ecx, 0x11
jbe 0x40ecf5
call fcn.004efd9f
mov dword [eax], 0x22
call fcn.004eb7e6
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.0042429f
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0040c6d0
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
push 0x6d8fac
cmovae ecx, dword [ebp - 0x5c]
push ecx
call fcn.004f0d83
mov edi, eax
add esp, 8
test edi, edi
jne 0x40ee8d
mov edi, dword [ebp - 0x130]
lea eax, [ebp - 0xd8]
push eax
mov ecx, edi
call fcn.0040f280
mov byte [ebp - 4], 5
test esi, esi
je 0x40edb1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0xd8]
call fcn.0040def0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x40edf0
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ede6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f245
push edx
push ecx
call fcn.00424265
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 0x40ee3c
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ee32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f24a
push edx
push ecx
call fcn.00424265
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 0x40f223
mov ecx, dword [ebx + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f219
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f24f
jmp 0x40f219
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 - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
push esi
mov byte [ebp - 4], 6
call fcn.00424273
push edi
push esi
push 1
push eax
mov dword [ebp - 0x114], eax
call fcn.004f0299
push edi
call fcn.004ef993
add esp, 0x34
lea ecx, [ebp - 0x74]
push 0
push esi
call fcn.0040fd10
mov edi, dword [ebp - 0x114]
xor edx, edx
test esi, esi
jle 0x40ef0b
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 0x40eef5
push ecx
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x12c]
call fcn.0040d460
add esp, 4
lea ecx, [ebp - 0x74]
push eax
call fcn.0040aac0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ef60
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f254
push edx
push ecx
call fcn.00424265
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.0040abe0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c2a0
push 0x38
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.004e7e00
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.004c18a8
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x110]
call fcn.004c1ccd
test al, al
je 0x40f155
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.0040ace0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004c1c38
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f045
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f03b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f259
push edx
push ecx
call fcn.00424265
add esp, 8
push 3
push 0x6d8f68
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.0040ace0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004c1c38
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f0cd
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f0c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f25e
push edx
push ecx
call fcn.00424265
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.0040ace0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
call fcn.004c1c38
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40f155
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f14b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f263
push edx
push ecx
call fcn.00424265
add esp, 8
push edi
call fcn.00423c26
mov edi, dword [ebp - 0x130]
lea eax, [ebp - 0xd8]
add esp, 4
mov ecx, edi
push eax
call fcn.0040f280
lea ecx, [ebp - 0x110]
call fcn.004c1959
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x40f1b8
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f268
push edx
push ecx
call fcn.00424265
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 0x40f201
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f26d
push edx
push ecx
call fcn.00424265
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40edb1
mov eax, dword [ecx]
push 1
jmp 0x40edaf
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 - 0x14]
xor ecx, ebp
call fcn.00423c15
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
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